[PATCH] hwmon: ftsteutates: constify i2c_device_id

2017-08-19 Thread Arvind Yadav
i2c_device_id are not supposed to change at runtime. All functions working with i2c_device_id provided by work with const i2c_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/hwmon/ftsteutates.c | 2 +- 1 file chan

Re: [v2] hwmon: adt7475: constify attribute_group structures

2017-08-08 Thread Arvind Yadav
yes, Sorry for noise. After rebase, it' was showing unchanged. On Wednesday 09 August 2017 07:35 AM, Guenter Roeck wrote: On Mon, Aug 07, 2017 at 03:06:29PM +0530, Arvind Yadav wrote: attribute_group are not supposed to change at runtime. All functions working with attribute_group provided

[PATCH v2] hwmon: adt7475: constify attribute_group structures

2017-08-07 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- change in v2: subject was not c

Re: [PATCH] hwmon: adt7475: wusbhc: constify attribute_group structures.

2017-08-07 Thread Arvind Yadav
Hi, On Monday 07 August 2017 02:55 PM, Jean Delvare wrote: Hi Arvind, On lun., 2017-08-07 at 11:49 +0530, Arvind Yadav wrote: attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const

[PATCH] hwmon: adt7475: wusbhc: constify attribute_group structures.

2017-08-07 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/hwmon/adt7475.c | 16 -

[PATCH] hwmon: i5k_amb: constify pci_device_id.

2017-07-17 Thread Arvind Yadav
/hwmon/i5k_amb.o File size After adding 'const': textdata bss dec hex filename 3658 224 83890 f32 drivers/hwmon/i5k_amb.o Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/hwmon/i5k_amb.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH] hwmon: adt7475: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
drivers/hwmon/adt7475.o File size After adding 'const': textdata bss dec hex filename 105676520 0 1708742bf drivers/hwmon/adt7475.o Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/hwmon/adt7475.c | 16 1 file chan

[PATCH] hwmon: adc128d818: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
drivers/hwmon/adc128d818.o File size After adding 'const': textdata bss dec hex filename 23442872 052161460 drivers/hwmon/adc128d818.o Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/hwmon/adc128d818.c | 2 +- 1 file changed, 1 ins

[PATCH] hwmon: nct7802: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
drivers/hwmon/hwmon.o File size After adding 'const': textdata bss dec hex filename 6703 240 069431b1f drivers/hwmon/hwmon.o Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/hwmon/nct7802.c | 10 +- 1 file changed, 5 insertions

[PATCH] hwmon: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
drivers/hwmon/hwmon.o File size After adding 'const': textdata bss dec hex filename 6703 240 069431b1f drivers/hwmon/hwmon.o Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/hwmon/hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 de