diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-08-09 18:20:33 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2021-10-26 21:31:03 +0200 |
commit | c3a291e18dfe8b82b67fd0de2ff7f3cdb17dea62 (patch) | |
tree | b68febd4d45b0cb7733b67cf4add192e4e7502af /drivers/watchdog | |
parent | watchdog: f71808e_wdt: remove superfluous global (diff) | |
download | linux-c3a291e18dfe8b82b67fd0de2ff7f3cdb17dea62.tar.xz linux-c3a291e18dfe8b82b67fd0de2ff7f3cdb17dea62.zip |
watchdog: f71808e_wdt: constify static array
The fintek_wdt_names is meant for read-only use and is currently not
modified. Mark it const to catch future writes.
Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/9720c5a1efcef861da68b693453bb3eb3c21af37.1628525954.git-series.a.fatoum@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/f71808e_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c index 3a0b29cb5854..8913747517fa 100644 --- a/drivers/watchdog/f71808e_wdt.c +++ b/drivers/watchdog/f71808e_wdt.c @@ -112,7 +112,7 @@ MODULE_PARM_DESC(start_withtimeout, "Start watchdog timer on module load with" enum chips { f71808fg, f71858fg, f71862fg, f71868, f71869, f71882fg, f71889fg, f81803, f81865, f81866}; -static const char *f71808e_names[] = { +static const char * const f71808e_names[] = { "f71808fg", "f71858fg", "f71862fg", |