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

Input: magellan - 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
f31103f8 b9e8cbc4

+1 -1
+1 -1
drivers/input/joystick/magellan.c
··· 198 198 * The serio driver structure. 199 199 */ 200 200 201 - static struct serio_device_id magellan_serio_ids[] = { 201 + static const struct serio_device_id magellan_serio_ids[] = { 202 202 { 203 203 .type = SERIO_RS232, 204 204 .proto = SERIO_MAGELLAN,