summaryrefslogtreecommitdiff
path: root/drivers/watchdog/tqmx86_wdt.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-07-28 00:30:42 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2021-08-22 10:28:10 +0200
commit47b45c4a69febd423ecb011fce22559158cd08d9 (patch)
treec867085b0d757aa49da4d57610ada678d0af67de /drivers/watchdog/tqmx86_wdt.c
parentade448c7e58e58b8fb86ebf31497b68b7c4f94d7 (diff)
watchdog: mpc8xxx_wdt: Constify static struct watchdog_ops
The struct mpc8xxx_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-4-rikard.falkeborn@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/tqmx86_wdt.c')
0 files changed, 0 insertions, 0 deletions