diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 02:09:41 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-19 02:14:58 +0200 |
commit | 9780930ae602982bd1b9859c07b09c800ae12d04 (patch) | |
tree | 52031d1b0a67dc36847914afdb825994103a56db /drivers/input/keyboard/newtonkbd.c | |
parent | Input: lkkbd - constify serio_device_id (diff) | |
download | linux-9780930ae602982bd1b9859c07b09c800ae12d04.tar.xz linux-9780930ae602982bd1b9859c07b09c800ae12d04.zip |
Input: newtonkbd - 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 '')
-rw-r--r-- | drivers/input/keyboard/newtonkbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/newtonkbd.c b/drivers/input/keyboard/newtonkbd.c index 20f044377990..fb9b8e23ab93 100644 --- a/drivers/input/keyboard/newtonkbd.c +++ b/drivers/input/keyboard/newtonkbd.c @@ -142,7 +142,7 @@ static void nkbd_disconnect(struct serio *serio) kfree(nkbd); } -static struct serio_device_id nkbd_serio_ids[] = { +static const struct serio_device_id nkbd_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_NEWTON, |