OSDN Git Service

regulator: ltc3589: constify i2c_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 21 Aug 2017 16:51:08 +0000 (22:21 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 21 Aug 2017 17:10:42 +0000 (18:10 +0100)
commit6d284bb11c302a4db4d169ca13d48dbb4d9b5cbe
tree86124829a58ff7d1227ef7db921c7125fc76edf4
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
regulator: ltc3589: 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: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3589.c