From: Arvind Yadav Date: Sun, 13 Aug 2017 09:45:32 +0000 (+0530) Subject: HID: sensor: constify platform_device_id X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0be2bfdc2307bfe49d7dae5a18f021affc1276b7;p=openwrt%2Fstaging%2Fblogic.git 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 work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Jiri Kosina --- 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", },