Re: [PATCH] i2c-cht-wc: constify platform_device_id

2017-12-07 Thread Wolfram Sang
On Tue, Nov 28, 2017 at 03:55:07PM +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav

Re: [PATCH] i2c-cht-wc: constify platform_device_id

2017-12-07 Thread Wolfram Sang
On Tue, Nov 28, 2017 at 03:55:07PM +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav

Re: [PATCH] i2c-cht-wc: constify platform_device_id

2017-11-28 Thread Hans de Goede
Hi, On 28-11-17 11:25, Arvind Yadav wrote: platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav

Re: [PATCH] i2c-cht-wc: constify platform_device_id

2017-11-28 Thread Hans de Goede
Hi, On 28-11-17 11:25, Arvind Yadav wrote: platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Looks good to me:

[PATCH] i2c-cht-wc: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/i2c/busses/i2c-cht-wc.c | 2 +- 1

[PATCH] i2c-cht-wc: constify platform_device_id

2017-11-28 Thread Arvind Yadav
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/i2c/busses/i2c-cht-wc.c | 2 +- 1 file changed, 1