sensorhal: remove unnecessary flags argument

Change-Id: I5d659bbc670aae9e8938ed87773fc40487a3fb7b
This commit is contained in:
Andrew Rossignol
2016-07-06 17:20:16 -07:00
parent 759d604909
commit 2b9311a5a6
5 changed files with 10 additions and 16 deletions

View File

@@ -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