From: Arvind Yadav Date: Sat, 19 Aug 2017 00:09:14 +0000 (-0700) Subject: Input: iatkbd - constify serio_device_id X-Git-Tag: v4.14-rc1~4^2~1^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af2e7d77957afdf08f7e12a1d1e24f51eb51c7db;p=platform%2Fkernel%2Flinux-exynos.git Input: iatkbd - constify serio_device_id serio_device_id are not supposed to change at runtime. All functions working with serio_device_id provided by work with const serio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index ec876b5..7e75835 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c @@ -1270,7 +1270,7 @@ static int atkbd_reconnect(struct serio *serio) return retval; } -static struct serio_device_id atkbd_serio_ids[] = { +static const struct serio_device_id atkbd_serio_ids[] = { { .type = SERIO_8042, .proto = SERIO_ANY,