hwmon: add fault attribute for voltage channels
authorNuno Sa <nuno.sa@analog.com>
Mon, 29 Jan 2024 16:13:24 +0000 (17:13 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 11 Feb 2024 21:43:09 +0000 (13:43 -0800)
commit35c1bfb99fef9c71f9df5c1325db99a79300bc97
tree38b776b57f7fdca4e3cd66d0b033a150d228fc49
parentd07c41eb963a4f621d1867c36ad3b79b2f5faa20
hwmon: add fault attribute for voltage channels

Sometimes a voltage channel might have an hard failure (eg: a shorted
MOSFET). Hence, add a fault attribute to report such failures.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240129-b4-ltc4282-support-v4-2-fe75798164cc@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/ABI/testing/sysfs-class-hwmon
drivers/hwmon/hwmon.c
include/linux/hwmon.h