[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190904211239.GC23608@ninjato>
Date: Wed, 4 Sep 2019 23:12:39 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Nishka Dasgupta <nishkadg.linux@...il.com>
Cc: pierre-yves.mordret@...com, mcoquelin.stm32@...il.com,
alexandre.torgue@...com, linux-i2c@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: stm32f7: Make structure stm32f7_i2c_algo constant
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 protect it from unintended modification.
> Issue found with Coccinelle.
>
> Signed-off-by: Nishka Dasgupta <nishkadg.linux@...il.com>
Applied to for-next, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists