aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-14 22:10:55 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-08-14 22:12:06 -0700
commit64954e344257b7660839151b3f30bd1bacb6eb38 (patch)
treea48c853d7376112c661d6d390b45f4b54a9e6e07 /drivers/input/misc
parentInput: sun4i-ts - constify thermal_zone_of_device_ops structures (diff)
downloadlinux-dev-64954e344257b7660839151b3f30bd1bacb6eb38.tar.xz
linux-dev-64954e344257b7660839151b3f30bd1bacb6eb38.zip
Input: ati_remote2 - constify usb_device_id
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by <linux/usb.h> work with const usb_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/misc')
-rw-r--r--drivers/input/misc/ati_remote2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/ati_remote2.c b/drivers/input/misc/ati_remote2.c
index 1c5914cae853..ebf4448b31b9 100644
--- a/drivers/input/misc/ati_remote2.c
+++ b/drivers/input/misc/ati_remote2.c
@@ -110,7 +110,7 @@ static const struct kernel_param_ops param_ops_mode_mask = {
module_param(mode_mask, mode_mask, 0644);
MODULE_PARM_DESC(mode_mask, "Bitmask of modes to accept <4:PC><3:AUX4><2:AUX3><1:AUX2><0:AUX1>");
-static struct usb_device_id ati_remote2_id_table[] = {
+static const struct usb_device_id ati_remote2_id_table[] = {
{ USB_DEVICE(0x0471, 0x0602) }, /* ATI Remote Wonder II */
{ }
};