Re: [PATCH] i2c: taos-evm: Make structure tsl2550_info constant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 19, 2019 at 01:16:01PM +0530, Nishka Dasgupta wrote:
> Static structure tsl2550_info, of type i2c_board_info, is referenced
> only twice: the first time in arguments to dev_info() (which does not
> modify it) and the second time as the last argument to function
> i2c_new_device() (where the corresponding parameter is declared as
> const). As tsl2550_info is therefore never modified, make it const to
> protect it from unintended modifications.
> Issue found with Coccinelle.
> 
> Signed-off-by: Nishka Dasgupta <nishkadg.linux@xxxxxxxxx>

Applied to for-next, thanks!

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux