]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: tsl2583: constify i2c_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 19 Aug 2017 18:47:38 +0000 (00:17 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 Aug 2017 09:17:23 +0000 (10:17 +0100)
commitc47f558609f56a163e75bc1d7e3011d9aab02918
treeea301ad11c72c8c68e5b243fa716372411fb8918
parent53b77a11bdb4f4a4834ad02f58af610455173c1c
iio: light: tsl2583: constify i2c_device_id

i2c_device_id are not supposed to change at runtime. All functions
working with i2c_device_id provided by <linux/i2c.h> work with
const i2c_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2583.c