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

Input: gunze - 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
73300904 0e2ba64e

+1 -1
+1 -1
drivers/input/touchscreen/gunze.c
··· 162 162 * The serio driver structure. 163 163 */ 164 164 165 - static struct serio_device_id gunze_serio_ids[] = { 165 + static const struct serio_device_id gunze_serio_ids[] = { 166 166 { 167 167 .type = SERIO_RS232, 168 168 .proto = SERIO_GUNZE,