driver/sensor: sync batch and interval when update interval
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
8e03f213e3
commit
ddd4a0d635
@ -245,6 +245,11 @@ update:
|
|||||||
{
|
{
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (upper->state.min_latency != ULONG_MAX)
|
||||||
|
{
|
||||||
|
lower->ops->batch(filep, lower, &upper->state.min_latency);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
upper->state.min_interval = min_interval;
|
upper->state.min_interval = min_interval;
|
||||||
|
Loading…
Reference in New Issue
Block a user