Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: mtouch - 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>

authored by

Arvind Yadav and committed by
Dmitry Torokhov
a012cad6 79308587

+1 -1
+1 -1
drivers/input/touchscreen/mtouch.c
··· 178 178 * The serio driver structure. 179 179 */ 180 180 181 - static struct serio_device_id mtouch_serio_ids[] = { 181 + static const struct serio_device_id mtouch_serio_ids[] = { 182 182 { 183 183 .type = SERIO_RS232, 184 184 .proto = SERIO_MICROTOUCH,