Skip to content

Commit 30945d3

Browse files
nunojsagroeck
authored andcommitted
hwmon: Fix HWMON_P_MIN_ALARM mask
Both HWMON_P_MIN_ALARM and HWMON_P_MAX_ALARM were using BIT(hwmon_power_max_alarm). Fixes: aa7f29b ("hwmon: Add support for power min, lcrit, min_alarm and lcrit_alarm") CC: <[email protected]> Signed-off-by: Nuno Sá <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 43fd0cf commit 30945d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/hwmon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ enum hwmon_power_attributes {
235235
#define HWMON_P_LABEL BIT(hwmon_power_label)
236236
#define HWMON_P_ALARM BIT(hwmon_power_alarm)
237237
#define HWMON_P_CAP_ALARM BIT(hwmon_power_cap_alarm)
238-
#define HWMON_P_MIN_ALARM BIT(hwmon_power_max_alarm)
238+
#define HWMON_P_MIN_ALARM BIT(hwmon_power_min_alarm)
239239
#define HWMON_P_MAX_ALARM BIT(hwmon_power_max_alarm)
240240
#define HWMON_P_LCRIT_ALARM BIT(hwmon_power_lcrit_alarm)
241241
#define HWMON_P_CRIT_ALARM BIT(hwmon_power_crit_alarm)

0 commit comments

Comments
 (0)