summaryrefslogtreecommitdiff
path: root/common/dptf.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/dptf.c')
-rw-r--r--common/dptf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/dptf.c b/common/dptf.c
index 75bcdcad01..f4fc6d0ff6 100644
--- a/common/dptf.c
+++ b/common/dptf.c
@@ -47,7 +47,7 @@ int dptf_query_next_sensor_event(void)
for (id = 0; id < TEMP_SENSOR_COUNT; id++)
if (dptf_seen & BIT(id)) { /* atomic? */
- deprecated_atomic_clear(&dptf_seen, BIT(id));
+ deprecated_atomic_clear_bits(&dptf_seen, BIT(id));
return id;
}
@@ -109,7 +109,7 @@ void dptf_set_temp_threshold(int sensor_id, int temp, int idx, int enable)
if (dptf_threshold[sensor_id][idx].temp == -1)
cond_init(&dptf_threshold[sensor_id][idx].over, 0);
dptf_threshold[sensor_id][idx].temp = temp;
- deprecated_atomic_clear(&dptf_seen, BIT(sensor_id));
+ deprecated_atomic_clear_bits(&dptf_seen, BIT(sensor_id));
} else {
dptf_threshold[sensor_id][idx].temp = -1;
}