Skip to content

Commit d379880

Browse files
committed
hwmon: (lm90) Fix sysfs and udev notifications
sysfs and udev notifications need to be sent to the _alarm attributes, not to the value attributes. Fixes: 94dbd23 ("hwmon: (lm90) Use hwmon_notify_event()") Cc: Dmitry Osipenko <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent f614629 commit d379880

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/hwmon/lm90.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,22 +1808,22 @@ static bool lm90_is_tripped(struct i2c_client *client, u16 *status)
18081808

18091809
if (st & LM90_STATUS_LLOW)
18101810
hwmon_notify_event(data->hwmon_dev, hwmon_temp,
1811-
hwmon_temp_min, 0);
1811+
hwmon_temp_min_alarm, 0);
18121812
if (st & LM90_STATUS_RLOW)
18131813
hwmon_notify_event(data->hwmon_dev, hwmon_temp,
1814-
hwmon_temp_min, 1);
1814+
hwmon_temp_min_alarm, 1);
18151815
if (st2 & MAX6696_STATUS2_R2LOW)
18161816
hwmon_notify_event(data->hwmon_dev, hwmon_temp,
1817-
hwmon_temp_min, 2);
1817+
hwmon_temp_min_alarm, 2);
18181818
if (st & LM90_STATUS_LHIGH)
18191819
hwmon_notify_event(data->hwmon_dev, hwmon_temp,
1820-
hwmon_temp_max, 0);
1820+
hwmon_temp_max_alarm, 0);
18211821
if (st & LM90_STATUS_RHIGH)
18221822
hwmon_notify_event(data->hwmon_dev, hwmon_temp,
1823-
hwmon_temp_max, 1);
1823+
hwmon_temp_max_alarm, 1);
18241824
if (st2 & MAX6696_STATUS2_R2HIGH)
18251825
hwmon_notify_event(data->hwmon_dev, hwmon_temp,
1826-
hwmon_temp_max, 2);
1826+
hwmon_temp_max_alarm, 2);
18271827

18281828
return true;
18291829
}

0 commit comments

Comments
 (0)