Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arvind Yadav and committed by
Jiri Kosina
0be2bfdc b0f847e1

+1 -1
+1 -1
drivers/hid/hid-sensor-custom.c
··· 823 823 return 0; 824 824 } 825 825 826 - static struct platform_device_id hid_sensor_custom_ids[] = { 826 + static const struct platform_device_id hid_sensor_custom_ids[] = { 827 827 { 828 828 .name = "HID-SENSOR-2000e1", 829 829 },