]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: hwmon: Fix missing temp1_max_alarm attribute
authorHans de Goede <hdegoede@redhat.com>
Sun, 8 Sep 2024 18:53:37 +0000 (20:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:35 +0000 (15:11 +0200)
commit0c9655647ca97fb8afe1d3672d38075571996538
treef6dc2fd8500a028af8a0458c9d198c9cd62eac7f
parent5199bc715fb1887070a7e91a0c53300bc893259a
power: supply: hwmon: Fix missing temp1_max_alarm attribute

commit e50a57d16f897e45de1112eb6478577b197fab52 upstream.

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: f1d33ae806ec ("power: supply: remove duplicated argument in power_supply_hwmon_info")
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240908185337.103696-2-hdegoede@redhat.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/power_supply_hwmon.c