Re: [PATCH v2] sony-laptop: constify spic_attribute_group and sony_laptop_input_index.

2017-06-30 Thread Andy Shevchenko
On Fri, Jun 30, 2017 at 8:09 AM, Arvind Yadav wrote: > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size before: >

Re: [PATCH v2] sony-laptop: constify spic_attribute_group and sony_laptop_input_index.

2017-06-30 Thread Andy Shevchenko
On Fri, Jun 30, 2017 at 8:09 AM, Arvind Yadav wrote: > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size before: >textdata bss

[PATCH v2] sony-laptop: constify spic_attribute_group and sony_laptop_input_index.

2017-06-29 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 312735176 372 368218fd5

[PATCH v2] sony-laptop: constify spic_attribute_group and sony_laptop_input_index.

2017-06-29 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 312735176 372 368218fd5