watchdog: max63xx_wdt: Constify platform_device_id
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Fri, 1 May 2015 15:36:52 +0000 (00:36 +0900)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 22 Jun 2015 13:54:22 +0000 (15:54 +0200)
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>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/max63xx_wdt.c

index 08da3114accb5981958fc8c4c96e2911714c10a8..b3a1130b8eebf2e13f82206f23d2c0c1640aa515 100644 (file)
@@ -214,7 +214,7 @@ static int max63xx_wdt_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct platform_device_id max63xx_id_table[] = {
+static const struct platform_device_id max63xx_id_table[] = {
        { "max6369_wdt", (kernel_ulong_t)max6369_table, },
        { "max6370_wdt", (kernel_ulong_t)max6369_table, },
        { "max6371_wdt", (kernel_ulong_t)max6371_table, },