hwmon: (ftsteutates) Add support for fanX_fault attributes
authorArmin Wolf <W_Armin@gmx.de>
Thu, 5 Jan 2023 22:51:07 +0000 (23:51 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 3 Feb 2023 15:30:10 +0000 (07:30 -0800)
commitc184f377a4cc9078d42563ef0fe3de6ea574b0cf
treedff70d7e4d67f0bfb4f1788f698694adc4de4b53
parent1c5759d8ce054961b454af69568a41e7e3210ee1
hwmon: (ftsteutates) Add support for fanX_fault attributes

The driver knows internally when a fan is not connected,
but does not export this knowledge to userspace. Use the
standard fanX_fault attributes to notify userspace if a
fan is not connected.

Tested on a Fujitsu DS3401-B1.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230105225107.58308-4-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ftsteutates.c