Fix issue where sensor values are not updated unless there is a bank change

This commit is contained in:
ed 2019-09-28 12:07:57 +01:00
parent 29b2b5c6c0
commit 8f5eaec0b2
1 changed files with 5 additions and 8 deletions

View File

@ -303,8 +303,6 @@ static int get_cached_value_or_update(const struct asus_wmi_sensor_info *sensor,
int ret;
if (time_after(jiffies, asus_wmi_sensors->source_last_updated[sensor->source] + HZ)) {
if (asus_wmi_sensors->buffer != sensor->source) {
ret = update_buffer(sensor->source);
if (ret) {
@ -312,7 +310,6 @@ static int get_cached_value_or_update(const struct asus_wmi_sensor_info *sensor,
return -EIO;
}
asus_wmi_sensors->buffer = sensor->source;
}
update_values_for_source(sensor->source, asus_wmi_sensors);
asus_wmi_sensors->source_last_updated[sensor->source] = jiffies;