Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
On Thu, Jun 8, 2017 at 6:08 PM, Andy Shevchenko wrote: > On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal wrote: >> Add const to rfkill_ops structures that are only passed as an argument >> to the functions rfkill_alloc or samsung_new_rfkill. These

Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
On Thu, Jun 8, 2017 at 6:08 PM, Andy Shevchenko wrote: > On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal wrote: >> Add const to rfkill_ops structures that are only passed as an argument >> to the functions rfkill_alloc or samsung_new_rfkill. These arguments are >> of type const, so such structures

Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal wrote: > Add const to rfkill_ops structures that are only passed as an argument > to the functions rfkill_alloc or samsung_new_rfkill. These arguments are > of type const, so such structures can be annotated with const. Change is

Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal wrote: > Add const to rfkill_ops structures that are only passed as an argument > to the functions rfkill_alloc or samsung_new_rfkill. These arguments are > of type const, so such structures can be annotated with const. Change is fine by me, but

[PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/dell-rbtn.c

[PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/dell-rbtn.c | 2 +-