summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 03:09:05 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-19 03:14:17 +0300
commitb06bc6b6bf8cf68daca123ddcc3391ef08411f58 (patch)
treece686aa5e4ba21c6d52622e7dfea984851ad1717 /drivers/input
parentbee186de9ad116a5e0fb6c67578e430257afbdcf (diff)
downloadlinux-b06bc6b6bf8cf68daca123ddcc3391ef08411f58.tar.xz
Input: zhenhua - 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/joystick/zhenhua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/zhenhua.c b/drivers/input/joystick/zhenhua.c
index 4a8258bf13fd..5c6d5de743f1 100644
--- a/drivers/input/joystick/zhenhua.c
+++ b/drivers/input/joystick/zhenhua.c
@@ -192,7 +192,7 @@ static int zhenhua_connect(struct serio *serio, struct serio_driver *drv)
* The serio driver structure.
*/
-static struct serio_device_id zhenhua_serio_ids[] = {
+static const struct serio_device_id zhenhua_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_ZHENHUA,