Re: [PATCH] i2c: busses: make i2c_adapter_quirks const

2017-08-29 Thread Wolfram Sang
On Mon, Aug 21, 2017 at 05:42:04PM +0530, Bhumika Goyal wrote: > Make these const as they are only stored as a reference in the quirks > field of an i2c_adapter structure, which is const. > > Done using Coccinelle: > @match disable optional_qualifier@ > identifier s; > @@ > static struct

Re: [PATCH] i2c: busses: make i2c_adapter_quirks const

2017-08-29 Thread Wolfram Sang
On Mon, Aug 21, 2017 at 05:42:04PM +0530, Bhumika Goyal wrote: > Make these const as they are only stored as a reference in the quirks > field of an i2c_adapter structure, which is const. > > Done using Coccinelle: > @match disable optional_qualifier@ > identifier s; > @@ > static struct

[PATCH] i2c: busses: make i2c_adapter_quirks const

2017-08-21 Thread Bhumika Goyal
Make these const as they are only stored as a reference in the quirks field of an i2c_adapter structure, which is const. Done using Coccinelle: @match disable optional_qualifier@ identifier s; @@ static struct i2c_adapter_quirks s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@

[PATCH] i2c: busses: make i2c_adapter_quirks const

2017-08-21 Thread Bhumika Goyal
Make these const as they are only stored as a reference in the quirks field of an i2c_adapter structure, which is const. Done using Coccinelle: @match disable optional_qualifier@ identifier s; @@ static struct i2c_adapter_quirks s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@