mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
watchdog: iTCO_wdt: Report firmware_version
Synchronize the reported information in dmesg and the watchdog APIs. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20221125221240.2818-1-linux@weissschuh.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
parent
e8b1cb537b
commit
4ea6b986df
1 changed files with 2 additions and 2 deletions
|
@ -441,11 +441,10 @@ static bool iTCO_wdt_set_running(struct iTCO_wdt_private *p)
|
||||||
* Kernel Interfaces
|
* Kernel Interfaces
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const struct watchdog_info ident = {
|
static struct watchdog_info ident = {
|
||||||
.options = WDIOF_SETTIMEOUT |
|
.options = WDIOF_SETTIMEOUT |
|
||||||
WDIOF_KEEPALIVEPING |
|
WDIOF_KEEPALIVEPING |
|
||||||
WDIOF_MAGICCLOSE,
|
WDIOF_MAGICCLOSE,
|
||||||
.firmware_version = 0,
|
|
||||||
.identity = DRV_NAME,
|
.identity = DRV_NAME,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -563,6 +562,7 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ident.firmware_version = p->iTCO_version;
|
||||||
p->wddev.info = &ident,
|
p->wddev.info = &ident,
|
||||||
p->wddev.ops = &iTCO_wdt_ops,
|
p->wddev.ops = &iTCO_wdt_ops,
|
||||||
p->wddev.bootstatus = 0;
|
p->wddev.bootstatus = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue