]> git.baikalelectronics.ru Git - kernel.git/commit
misc: hmc6352: constify i2c_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 21 Aug 2017 16:43:26 +0000 (22:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:55:49 +0000 (16:55 +0200)
commite22cb36b7cb0667c7bac9730208d0763cea4bb5f
tree96b41d28b2ff05e0723428f37cb1263823ae5074
parent79a48d45e6b8754d83d87313be04aea6cdc9e561
misc: hmc6352: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/hmc6352.c