mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-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
21539ef30b
commit
39f1b3c1b0
1 changed files with 6 additions and 0 deletions
|
@ -430,6 +430,9 @@ 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);
|
||||
|
@ -438,6 +441,9 @@ static int device__batch(struct sensors_poll_device_1 *dev, int handle,
|
|||
}
|
||||
|
||||
static int device__flush(struct sensors_poll_device_1 *dev, int handle) {
|
||||
(void)dev;
|
||||
(void)handle;
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue