summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-sensor-custom.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-13 11:45:32 +0200
committerJiri Kosina <jkosina@suse.cz>2017-08-15 11:01:14 +0200
commit0be2bfdc2307bfe49d7dae5a18f021affc1276b7 (patch)
treef488fe688fef1a8114d80cdf72c91dc832f933c8 /drivers/hid/hid-sensor-custom.c
parentHID: hid-sensor-hub: Force logical minimum to 1 for power and report state (diff)
downloadlinux-0be2bfdc2307bfe49d7dae5a18f021affc1276b7.tar.xz
linux-0be2bfdc2307bfe49d7dae5a18f021affc1276b7.zip
HID: sensor: constify platform_device_id
platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by <linux/platform_device.h> work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-sensor-custom.c')
-rw-r--r--drivers/hid/hid-sensor-custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c
index 3a84aaf1418b..5ad39fd5d879 100644
--- a/drivers/hid/hid-sensor-custom.c
+++ b/drivers/hid/hid-sensor-custom.c
@@ -823,7 +823,7 @@ static int hid_sensor_custom_remove(struct platform_device *pdev)
return 0;
}
-static struct platform_device_id hid_sensor_custom_ids[] = {
+static const struct platform_device_id hid_sensor_custom_ids[] = {
{
.name = "HID-SENSOR-2000e1",
},