Re: [PATCH] i2c: busses: constify i2c_algorithm structures

2017-02-09 Thread Wolfram Sang
On Fri, Jan 27, 2017 at 11:36:17PM +0530, Bhumika Goyal wrote: > Declare i2c_algorithm structures as const as they are only stored in the > algo field of an i2c_adapter structure. This field is of type const, so > i2c_algorithm structures having this property can be made const too. > > Signed-off-

Re: [PATCH] i2c: busses: constify i2c_algorithm structures

2017-02-06 Thread Ludovic Desroches
On Fri, Jan 27, 2017 at 11:36:17PM +0530, Bhumika Goyal wrote: > Declare i2c_algorithm structures as const as they are only stored in the > algo field of an i2c_adapter structure. This field is of type const, so > i2c_algorithm structures having this property can be made const too. > Done using Coc

Re: [PATCH] i2c: busses: constify i2c_algorithm structures

2017-01-31 Thread Jean Delvare
On Fri, 27 Jan 2017 23:36:17 +0530, Bhumika Goyal wrote: > Declare i2c_algorithm structures as const as they are only stored in the > algo field of an i2c_adapter structure. This field is of type const, so > i2c_algorithm structures having this property can be made const too. > (...) I have vague

Re: [PATCH] i2c: busses: constify i2c_algorithm structures

2017-01-30 Thread Jarkko Nikula
On 01/27/2017 08:06 PM, Bhumika Goyal wrote: Declare i2c_algorithm structures as const as they are only stored in the algo field of an i2c_adapter structure. This field is of type const, so i2c_algorithm structures having this property can be made const too. Done using Coccinelle: ... diff --g

Re: [PATCH] i2c: busses: constify i2c_algorithm structures

2017-01-30 Thread Patrice CHOTARD
On 01/27/2017 07:06 PM, Bhumika Goyal wrote: > Declare i2c_algorithm structures as const as they are only stored in the > algo field of an i2c_adapter structure. This field is of type const, so > i2c_algorithm structures having this property can be made const too. > Done using Coccinelle: > > @r

Re: [PATCH] i2c: busses: constify i2c_algorithm structures

2017-01-29 Thread Uwe Kleine-König
Hello, On Fri, Jan 27, 2017 at 11:36:17PM +0530, Bhumika Goyal wrote: > drivers/i2c/busses/i2c-imx.c | 2 +- Acked-by: Uwe Kleine-König for i2c-imx.c Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions

[PATCH] i2c: busses: constify i2c_algorithm structures

2017-01-27 Thread Bhumika Goyal
Declare i2c_algorithm structures as const as they are only stored in the algo field of an i2c_adapter structure. This field is of type const, so i2c_algorithm structures having this property can be made const too. Done using Coccinelle: @r disable optional_qualifier@ identifier i; position p; @@ s