diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-21 12:43:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 10:55:49 -0400 |
commit | b8dbb5024b5e62704caac6915f0f5f33448b8b05 (patch) | |
tree | 96b41d28b2ff05e0723428f37cb1263823ae5074 | |
parent | 07e4049ae0b2abc6b9c7226af5eb802380976bae (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.c | 2 |
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 | ||
135 | static struct i2c_device_id hmc6352_id[] = { | 135 | static const struct i2c_device_id hmc6352_id[] = { |
136 | { "hmc6352", 0 }, | 136 | { "hmc6352", 0 }, |
137 | { } | 137 | { } |
138 | }; | 138 | }; |