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

Input: warrior - 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
bee186de a1e29643

+1 -1
+1 -1
drivers/input/joystick/warrior.c
··· 193 193 * The serio driver structure. 194 194 */ 195 195 196 - static struct serio_device_id warrior_serio_ids[] = { 196 + static const struct serio_device_id warrior_serio_ids[] = { 197 197 { 198 198 .type = SERIO_RS232, 199 199 .proto = SERIO_WARRIOR,