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

Input: spaceorb - 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
ecfd71af c62c68f8

+1 -1
+1 -1
drivers/input/joystick/spaceorb.c
··· 213 213 * The serio driver structure. 214 214 */ 215 215 216 - static struct serio_device_id spaceorb_serio_ids[] = { 216 + static const struct serio_device_id spaceorb_serio_ids[] = { 217 217 { 218 218 .type = SERIO_RS232, 219 219 .proto = SERIO_SPACEORB,