msm8974-common: sensors: Resolve unused parameter warnings

* Change dce39f8a86 ("msm8974-common: sensors: Disable batching")
  resulted in unused parameters. Fix that.

Change-Id: If6590e6e7c2e14dbb4f7141c69c6bd71900fe896
This commit is contained in:
Kevin F. Haggerty 2018-09-20 22:58:42 -06:00 committed by Kevin Haggerty
parent 11152c4794
commit 2bd8da39b5

View File

@ -553,12 +553,18 @@ static int device__poll(struct sensors_poll_device_t *dev, sensors_event_t* data
static int device__batch(struct sensors_poll_device_1 *dev, int handle,
int flags, int64_t period_ns, int64_t timeout) {
(void)flags;
(void)timeout;
sensors_poll_context_t* ctx = (sensors_poll_context_t*) dev;
ctx->setDelay(handle, period_ns);
return 0;
}
static int device__flush(struct sensors_poll_device_1 *dev, int handle) {
(void)dev;
(void)handle;
return -EINVAL;
}