Re: [PATCH] i2c: stm32f7: Make structure stm32f7_i2c_algo constant

2019-09-04 Thread Wolfram Sang
On Thu, Aug 15, 2019 at 11:28:57AM +0530, Nishka Dasgupta wrote: > Static structure stm32f7_i2c_algo, of type i2c_algorithm, is used only > when it is assigned to constant field algo of a variable having type > i2c_adapter. As stm32f7_i2c_algo is therefore never modified, make it > const as well to

Re: [PATCH] i2c: stm32f7: Make structure stm32f7_i2c_algo constant

2019-09-04 Thread Pierre Yves MORDRET
Hi Wolfram Sorry for the delay. Acked-by: Pierre-Yves MORDRET BR On 9/3/19 8:05 PM, Wolfram Sang wrote: > On Thu, Aug 15, 2019 at 11:28:57AM +0530, Nishka Dasgupta wrote: >> Static structure stm32f7_i2c_algo, of type i2c_algorithm, is used only >> when it is assigned to constant field algo of

Re: [PATCH] i2c: stm32f7: Make structure stm32f7_i2c_algo constant

2019-09-03 Thread Wolfram Sang
On Thu, Aug 15, 2019 at 11:28:57AM +0530, Nishka Dasgupta wrote: > Static structure stm32f7_i2c_algo, of type i2c_algorithm, is used only > when it is assigned to constant field algo of a variable having type > i2c_adapter. As stm32f7_i2c_algo is therefore never modified, make it > const as well to