sensorhal: remove unnecessary flags argument
Change-Id: I5d659bbc670aae9e8938ed87773fc40487a3fb7b
This commit is contained in:
@@ -106,7 +106,6 @@ int SensorContext::poll(sensors_event_t *data, int count) {
|
||||
|
||||
int SensorContext::batch(
|
||||
int handle,
|
||||
int flags,
|
||||
int64_t sampling_period_ns,
|
||||
int64_t max_report_latency_ns) {
|
||||
ALOGI("batch");
|
||||
@@ -130,9 +129,8 @@ int SensorContext::batch(
|
||||
break;
|
||||
}
|
||||
|
||||
mHubConnection->queueBatch(
|
||||
handle, flags, sampling_period_ns_clamped, max_report_latency_ns);
|
||||
|
||||
mHubConnection->queueBatch(handle, sampling_period_ns_clamped,
|
||||
max_report_latency_ns);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -173,8 +171,9 @@ int SensorContext::BatchWrapper(
|
||||
int flags,
|
||||
int64_t sampling_period_ns,
|
||||
int64_t max_report_latency_ns) {
|
||||
(void) flags;
|
||||
return reinterpret_cast<SensorContext *>(dev)->batch(
|
||||
handle, flags, sampling_period_ns, max_report_latency_ns);
|
||||
handle, sampling_period_ns, max_report_latency_ns);
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Reference in New Issue
Block a user