summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-21 12:43:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 10:55:49 -0400
commitb8dbb5024b5e62704caac6915f0f5f33448b8b05 (patch)
tree96b41d28b2ff05e0723428f37cb1263823ae5074
parent07e4049ae0b2abc6b9c7226af5eb802380976bae (diff)
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>
-rw-r--r--drivers/misc/hmc6352.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/hmc6352.c b/drivers/misc/hmc6352.c
index 90520d76633f..eeb7eef62174 100644
--- a/drivers/misc/hmc6352.c
+++ b/drivers/misc/hmc6352.c
@@ -132,7 +132,7 @@ static int hmc6352_remove(struct i2c_client *client)
132 return 0; 132 return 0;
133} 133}
134 134
135static struct i2c_device_id hmc6352_id[] = { 135static const struct i2c_device_id hmc6352_id[] = {
136 { "hmc6352", 0 }, 136 { "hmc6352", 0 },
137 { } 137 { }
138}; 138};