Skip to content

Commit e50a57d

Browse files
jwrdegoedesre
authored andcommitted
power: supply: hwmon: Fix missing temp1_max_alarm attribute
Temp channel 0 aka temp1 can have a temp1_max_alarm attribute for power_supply devices which have a POWER_SUPPLY_PROP_TEMP_ALERT_MAX property. HWMON_T_MAX_ALARM was missing from power_supply_hwmon_info for temp channel 0, causing the hwmon temp1_max_alarm attribute to be missing from such power_supply devices. Add this to power_supply_hwmon_info to fix this. Fixes: f1d33ae ("power: supply: remove duplicated argument in power_supply_hwmon_info") Cc: [email protected] Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 78f281e commit e50a57d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/power/supply/power_supply_hwmon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ static const struct hwmon_channel_info * const power_supply_hwmon_info[] = {
318318
HWMON_T_INPUT |
319319
HWMON_T_MAX |
320320
HWMON_T_MIN |
321-
HWMON_T_MIN_ALARM,
321+
HWMON_T_MIN_ALARM |
322+
HWMON_T_MAX_ALARM,
322323

323324
HWMON_T_LABEL |
324325
HWMON_T_INPUT |

0 commit comments

Comments
 (0)