Skip to content

Commit

Permalink
HID: sensor: constify platform_device_id
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
ArvindYadavCs authored and Jiri Kosina committed Aug 15, 2017
1 parent b0f847e commit 0be2bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-sensor-custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit 0be2bfd

Please sign in to comment.