diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 17:35:52 +0530 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-17 17:36:42 +0200 |
commit | c6a6bdbdc6cc07257889849d9ddf7256cbf3acbc (patch) | |
tree | ccb0d658089a2ea28fc3735eb4208f7107518006 /drivers/i2c | |
parent | 87b59ff8d1d9d809c014a4e20bc043064b6e0047 (diff) | |
download | linux-c6a6bdbdc6cc07257889849d9ddf7256cbf3acbc.tar.bz2 |
i2c: taos-evm: constify serio_device_id
serio_device_id are not supposed to change at runtime. All functions
working with serio_device_id provided by <linux/serio.h> work with
const serio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-taos-evm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-taos-evm.c b/drivers/i2c/busses/i2c-taos-evm.c index 210ca82f8aa0..addd90a8cb59 100644 --- a/drivers/i2c/busses/i2c-taos-evm.c +++ b/drivers/i2c/busses/i2c-taos-evm.c @@ -291,7 +291,7 @@ static void taos_disconnect(struct serio *serio) dev_info(&serio->dev, "Disconnected from TAOS EVM\n"); } -static struct serio_device_id taos_serio_ids[] = { +static const struct serio_device_id taos_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_TAOSEVM, |