Re: [PATCH] i2c: designware-slave: constify i2c_algorithm structure

2017-08-12 Thread Wolfram Sang
> > I don't think it's a good idea to copy'n'paste patch to each change > > where you fixing the issue. Can you create a github repository of the > > coccinelle recipes and give just a link? > > I will take note of that, thanks for the suggestion. I took the liberty to squash the 4 patches into

Re: [PATCH] i2c: designware-slave: constify i2c_algorithm structure

2017-08-12 Thread Wolfram Sang
> > I don't think it's a good idea to copy'n'paste patch to each change > > where you fixing the issue. Can you create a github repository of the > > coccinelle recipes and give just a link? > > I will take note of that, thanks for the suggestion. I took the liberty to squash the 4 patches into

Re: [PATCH] i2c: designware-slave: constify i2c_algorithm structure

2017-07-16 Thread Gustavo A. R. Silva
Hi Andy, On 07/10/2017 05:26 AM, Andy Shevchenko wrote: On Sun, 2017-07-09 at 16:35 -0500, Gustavo A. R. Silva wrote: Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this

Re: [PATCH] i2c: designware-slave: constify i2c_algorithm structure

2017-07-16 Thread Gustavo A. R. Silva
Hi Andy, On 07/10/2017 05:26 AM, Andy Shevchenko wrote: On Sun, 2017-07-09 at 16:35 -0500, Gustavo A. R. Silva wrote: Check for i2c_algorithm structures that are only stored in the algo field of an i2c_adapter structure. This field is declared const, so i2c_algorithm structures that have this

Re: [PATCH] i2c: designware-slave: constify i2c_algorithm structure

2017-07-10 Thread Andy Shevchenko
On Sun, 2017-07-09 at 16:35 -0500, Gustavo A. R. Silva wrote: > Check for i2c_algorithm structures that are only stored in > the algo field of an i2c_adapter structure. This field is > declared const, so i2c_algorithm structures that have this > property can be declared as const also. > > This

Re: [PATCH] i2c: designware-slave: constify i2c_algorithm structure

2017-07-10 Thread Andy Shevchenko
On Sun, 2017-07-09 at 16:35 -0500, Gustavo A. R. Silva wrote: > Check for i2c_algorithm structures that are only stored in > the algo field of an i2c_adapter structure. This field is > declared const, so i2c_algorithm structures that have this > property can be declared as const also. > > This