mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
HACK: msm8226-common: sensors: make it compile on P
This commit is contained in:
parent
d83b999e4a
commit
7a69c9070c
1 changed files with 1 additions and 2 deletions
|
@ -381,12 +381,11 @@ int sensors_poll_context_t::inject_sensor_data(struct sensors_poll_device_1 *dev
|
||||||
int retval = -EINVAL;
|
int retval = -EINVAL;
|
||||||
ALOGV("inject_sensor_data");
|
ALOGV("inject_sensor_data");
|
||||||
// Get handle for the sensor owning the event being injected
|
// Get handle for the sensor owning the event being injected
|
||||||
int local_handle = get_local_handle(data->sensor);
|
//int local_handle = get_local_handle(data->sensor);
|
||||||
sensors_poll_device_1_t* v1 = this->get_v1_device_by_handle(data->sensor);
|
sensors_poll_device_1_t* v1 = this->get_v1_device_by_handle(data->sensor);
|
||||||
retval = v1->inject_sensor_data(dev, data);
|
retval = v1->inject_sensor_data(dev, data);
|
||||||
ALOGV("retval %d", retval);
|
ALOGV("retval %d", retval);
|
||||||
return retval;
|
return retval;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int sensors_poll_context_t::close() {
|
int sensors_poll_context_t::close() {
|
||||||
|
|
Loading…
Reference in a new issue