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

Input: touchright - 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
ef2bc04e b84704c3

+1 -1
+1 -1
drivers/input/touchscreen/touchright.c
··· 152 152 * The serio driver structure. 153 153 */ 154 154 155 - static struct serio_device_id tr_serio_ids[] = { 155 + static const struct serio_device_id tr_serio_ids[] = { 156 156 { 157 157 .type = SERIO_RS232, 158 158 .proto = SERIO_TOUCHRIGHT,