watchdog: report fw_version in sysfs
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 19 Dec 2022 21:30:39 +0000 (21:30 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 18 Feb 2023 14:11:40 +0000 (15:11 +0100)
commitb852e7a4a9ab6a1fb08c5aa36b1043672fd814dc
tree50ced2623ec8f3023b6f181447557b3d1e89fb89
parent12878a9fff5a2d45f4f5c71c83fee77f94aa1f8c
watchdog: report fw_version in sysfs

This synchronizes the information reported by ioctl and sysfs.
The mismatch is confusing because "wdctl" from util-linux uses the ioctl
when used with root privileges and sysfs without.

The file is called "fw_version" instead of "firmware_version" as
"firmware_version" is already used as custom attribute by single drivers.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221216-watchdog-sysfs-v2-1-6189311103a9@weissschuh.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Documentation/ABI/testing/sysfs-class-watchdog
drivers/watchdog/watchdog_dev.c