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:
parent
11152c4794
commit
2bd8da39b5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user