cbus-retu-wdt: Constify watchdog_info structure
PATCH 1/1 cbus-retu-wdt: Constify watchdog_info structure
Nobody modifies the watchdog_info structure, so make it const.
Signed-off-by Michael Buesch <[email protected]>
---
drivers/cbus/retu-wdt.c +1 -1
@@ -149,7 +149,7 @@ static long retu_wdt_ioctl(struct file * struct retu_wdt_dev *wdev = container_of(mdev, struct retu_wdt_dev, miscdev);int new_margin; -static struct watchdog_info ident = { +static const struct watchdog_info ident = { .identity ="Retu Watchdog" , .options =WDIOF_SETTIMEOUT , .firmware_version =0 ,
Signature · 1 line
Greetings, Michael.
Quoted 3 lines · Michael Buesch
Nobody modifies the
watchdog_infostructure, so make it const.Signed-off-by Michael Buesch <[email protected]>
Acked-by Felipe Balbi <[email protected]>
Signature · 1 line
balbi