From: Arvind Yadav Date: Sat, 19 Aug 2017 00:09:14 +0000 (-0700) Subject: Input: iatkbd - constify serio_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af2e7d77957afdf08f7e12a1d1e24f51eb51c7db;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 ec876b5b1382..7e75835e220f 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,