]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ftsteutates) constify i2c_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 19 Aug 2017 19:26:34 +0000 (00:56 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 30 Aug 2017 00:44:23 +0000 (17:44 -0700)
commit6a47bc13e9f5f811ceeade6e8fd36bf4c729d5e0
tree3dbdee6c1c20923d5acd6ab593cc2d337f87aeca
parentba64c2b431a3a5654c7bdffe0e218cc9ec5bd81e
hwmon: (ftsteutates) 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: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ftsteutates.c