aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hwmon.h
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-01-29 17:13:24 +0100
committerGuenter Roeck <linux@roeck-us.net>2024-02-11 13:43:09 -0800
commit35c1bfb99fef9c71f9df5c1325db99a79300bc97 (patch)
tree38b776b57f7fdca4e3cd66d0b033a150d228fc49 /include/linux/hwmon.h
parentdt-bindings: hwmon: Add LTC4282 bindings (diff)
downloadwireguard-linux-35c1bfb99fef9c71f9df5c1325db99a79300bc97.tar.xz
wireguard-linux-35c1bfb99fef9c71f9df5c1325db99a79300bc97.zip
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>
Diffstat (limited to 'include/linux/hwmon.h')
-rw-r--r--include/linux/hwmon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h
index c2c0da18dfa3..c7885fdce88f 100644
--- a/include/linux/hwmon.h
+++ b/include/linux/hwmon.h
@@ -141,6 +141,7 @@ enum hwmon_in_attributes {
hwmon_in_rated_min,
hwmon_in_rated_max,
hwmon_in_beep,
+ hwmon_in_fault,
};
#define HWMON_I_ENABLE BIT(hwmon_in_enable)
@@ -162,6 +163,7 @@ enum hwmon_in_attributes {
#define HWMON_I_RATED_MIN BIT(hwmon_in_rated_min)
#define HWMON_I_RATED_MAX BIT(hwmon_in_rated_max)
#define HWMON_I_BEEP BIT(hwmon_in_beep)
+#define HWMON_I_FAULT BIT(hwmon_in_fault)
enum hwmon_curr_attributes {
hwmon_curr_enable,