watchdog: report options in sysfs
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 19 Dec 2022 21:30:40 +0000 (21:30 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 18 Feb 2023 14:11:40 +0000 (15:11 +0100)
commitad8bc199b2e3197f53228fba05128069e31893c7
tree487dcda107210bb58f72f5c38987452bb0e34c2d
parentb852e7a4a9ab6a1fb08c5aa36b1043672fd814dc
watchdog: report options 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.

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-2-6189311103a9@weissschuh.net
[groeck: Fixed continuation line alignment]
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