watchdog: sl28cpld_wdt: Constify static struct watchdog_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 27 Jul 2021 22:30:40 +0000 (00:30 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 22 Aug 2021 08:28:09 +0000 (10:28 +0200)
commitade448c7e58e58b8fb86ebf31497b68b7c4f94d7
tree496f57b181d66af1a2697dbcc3def6bde9c425fb
parentaec42642d91fc86ddc03e97f0139c6c34ee6b6b1
watchdog: sl28cpld_wdt: Constify static struct watchdog_ops

The struct sl28cpld_wdt_ops is only assigned to the ops pointer in the
watchdog_device struct, which is a pointer to const struct watchdog_ops.
Make it const to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210727223042.48150-2-rikard.falkeborn@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sl28cpld_wdt.c