watchdog: max77620_wdt: constify platform_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 13 Aug 2017 11:28:28 +0000 (16:58 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 9 Sep 2017 18:40:39 +0000 (20:40 +0200)
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>
drivers/watchdog/max77620_wdt.c

index 68c41fa..2c9f53e 100644 (file)
@@ -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", },
        { },
 };