Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d284bb1 authored by Arvind Yadav's avatar Arvind Yadav Committed by Mark Brown
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5771a8c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ static int ltc3589_probe(struct i2c_client *client,
	return 0;
}

static struct i2c_device_id ltc3589_i2c_id[] = {
static const struct i2c_device_id ltc3589_i2c_id[] = {
	{ "ltc3589",   LTC3589   },
	{ "ltc3589-1", LTC3589_1 },
	{ "ltc3589-2", LTC3589_2 },