Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thomas Weißschuh and committed by
Wim Van Sebroeck
4ea6b986 e8b1cb53

+2 -2
+2 -2
drivers/watchdog/iTCO_wdt.c
··· 441 441 * Kernel Interfaces 442 442 */ 443 443 444 - static const struct watchdog_info ident = { 444 + static struct watchdog_info ident = { 445 445 .options = WDIOF_SETTIMEOUT | 446 446 WDIOF_KEEPALIVEPING | 447 447 WDIOF_MAGICCLOSE, 448 - .firmware_version = 0, 449 448 .identity = DRV_NAME, 450 449 }; 451 450 ··· 562 563 break; 563 564 } 564 565 566 + ident.firmware_version = p->iTCO_version; 565 567 p->wddev.info = &ident, 566 568 p->wddev.ops = &iTCO_wdt_ops, 567 569 p->wddev.bootstatus = 0;