diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 13:56:24 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 14:27:29 +0200 |
commit | 52471f6705b92054e73ee547a871797db076e716 (patch) | |
tree | 3c52328401e673e116510ee665e447a90b8c4cc0 /drivers/media | |
parent | media: usb: pulse8-cec: constify serio_device_id (diff) | |
download | linux-52471f6705b92054e73ee547a871797db076e716.tar.xz linux-52471f6705b92054e73ee547a871797db076e716.zip |
media: usb: rainshadow-cec: 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/rainshadow-cec/rainshadow-cec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/rainshadow-cec/rainshadow-cec.c b/drivers/media/usb/rainshadow-cec/rainshadow-cec.c index 6f9681c995a4..cecdcbcd400c 100644 --- a/drivers/media/usb/rainshadow-cec/rainshadow-cec.c +++ b/drivers/media/usb/rainshadow-cec/rainshadow-cec.c @@ -358,7 +358,7 @@ free_device: return err; } -static struct serio_device_id rain_serio_ids[] = { +static const struct serio_device_id rain_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_RAINSHADOW_CEC, |