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

Input: touchwin - 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
a110a953 ef2bc04e

+1 -1
+1 -1
drivers/input/touchscreen/touchwin.c
··· 159 159 * The serio driver structure. 160 160 */ 161 161 162 - static struct serio_device_id tw_serio_ids[] = { 162 + static const struct serio_device_id tw_serio_ids[] = { 163 163 { 164 164 .type = SERIO_RS232, 165 165 .proto = SERIO_TOUCHWIN,