summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-13 13:28:28 +0200
committerWim Van Sebroeck <wim@iguana.be>2017-09-09 20:40:39 +0200
commite8c7ebfdb4308d26efda8214da8bfbbd9cc31414 (patch)
tree56e0462447f50a312f6e6d9e71652e6883b8692f /drivers/watchdog
parentwatchdog: pcwd_usb: constify usb_device_id (diff)
downloadlinux-e8c7ebfdb4308d26efda8214da8bfbbd9cc31414.tar.xz
linux-e8c7ebfdb4308d26efda8214da8bfbbd9cc31414.zip
watchdog: max77620_wdt: 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> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/max77620_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/max77620_wdt.c b/drivers/watchdog/max77620_wdt.c
index 68c41fa2be27..2c9f53eaff4f 100644
--- a/drivers/watchdog/max77620_wdt.c
+++ b/drivers/watchdog/max77620_wdt.c
@@ -201,7 +201,7 @@ static int max77620_wdt_remove(struct platform_device *pdev)
return 0;
}
-static struct platform_device_id max77620_wdt_devtype[] = {
+static const struct platform_device_id max77620_wdt_devtype[] = {
{ .name = "max77620-watchdog", },
{ },
};