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

Input: elo - 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
4f8d5241 fe11d25e

+1 -1
+1 -1
drivers/input/touchscreen/elo.c
··· 381 381 * The serio driver structure. 382 382 */ 383 383 384 - static struct serio_device_id elo_serio_ids[] = { 384 + static const struct serio_device_id elo_serio_ids[] = { 385 385 { 386 386 .type = SERIO_RS232, 387 387 .proto = SERIO_ELO,