diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 17:07:48 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-08-18 17:14:10 -0700 |
commit | f31103f8ed17297f900d319bfdb7140877d9c057 (patch) | |
tree | 9b4afa9773cc47764a32a7c49708de685977db1c /drivers/input/joystick | |
parent | b9e8cbc437103b30f3289b3fe174c678c725258e (diff) | |
download | linux-f31103f8ed17297f900d319bfdb7140877d9c057.tar.gz linux-f31103f8ed17297f900d319bfdb7140877d9c057.tar.bz2 linux-f31103f8ed17297f900d319bfdb7140877d9c057.zip |
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>
Diffstat (limited to 'drivers/input/joystick')
-rw-r--r-- | drivers/input/joystick/magellan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/magellan.c b/drivers/input/joystick/magellan.c index c5358ba1f571..a9d0e3edca94 100644 --- a/drivers/input/joystick/magellan.c +++ b/drivers/input/joystick/magellan.c @@ -198,7 +198,7 @@ static int magellan_connect(struct serio *serio, struct serio_driver *drv) * The serio driver structure. */ -static struct serio_device_id magellan_serio_ids[] = { +static const struct serio_device_id magellan_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_MAGELLAN, |