driver/sensor: sync batch and interval when update interval

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-06-16 14:26:42 +08:00 committed by Xiang Xiao
parent 8e03f213e3
commit ddd4a0d635

View File

@ -245,6 +245,11 @@ update:
{
return ret;
}
if (upper->state.min_latency != ULONG_MAX)
{
lower->ops->batch(filep, lower, &upper->state.min_latency);
}
}
upper->state.min_interval = min_interval;