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

rtc: hid-sensor-time: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Krzysztof Kozlowski and committed by
Alexandre Belloni
19fd685f 9a72f410

+1 -1
+1 -1
drivers/rtc/rtc-hid-sensor-time.c
··· 318 318 return 0; 319 319 } 320 320 321 - static struct platform_device_id hid_time_ids[] = { 321 + static const struct platform_device_id hid_time_ids[] = { 322 322 { 323 323 /* Format: HID-SENSOR-usage_id_in_hex_lowercase */ 324 324 .name = "HID-SENSOR-2000a0",