diff options
author | Yu Jun <yujun@marvell.com> | 2016-01-29 01:09:21 -0800 |
---|---|---|
committer | Yu Jun <yujun@marvell.com> | 2016-01-31 23:03:01 -0800 |
commit | 971aef92f37548bb8fea198f4b8d0533a7931ac1 (patch) | |
tree | 4c925bfb758d6b3c2d60eee18708d7d53c846a25 | |
parent | c571742d868a7809767c4974da85235371621475 (diff) | |
download | marvell-971aef92f37548bb8fea198f4b8d0533a7931ac1.tar.gz |
oTo upgrade the sensor hal version to v1.3
Fixed the issue: Brillo sensor service rejects the Marvell Sensor
HAL registration because the hal version is v1.1. So upgrade it to
v1.3
BUG=26894494
Change-Id: Ieb93150944c3d3d1bce6d24ab55fbdd2f1c2cdbb
-rwxr-xr-x[-rw-r--r--] | peripheral/sensor/sensors_hal.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/peripheral/sensor/sensors_hal.cpp b/peripheral/sensor/sensors_hal.cpp index 141c157..8e49f3e 100644..100755 --- a/peripheral/sensor/sensors_hal.cpp +++ b/peripheral/sensor/sensors_hal.cpp @@ -370,22 +370,22 @@ static int poll__flush(struct sensors_poll_device_1 *dev, int handle) { This function should fill passed in sensors_poll_device_1_t* mSensorDevice*/ static int open_sensors(const struct hw_module_t *module, const char *id, struct hw_device_t **device) { - int status = -EINVAL; + ALOGV("open_sensors begin..."); sensors_poll_context_t *dev = new sensors_poll_context_t(); dev->device.common.tag = HARDWARE_DEVICE_TAG; - dev->device.common.version = SENSORS_DEVICE_API_VERSION_1_1; - dev->device.flush = poll__flush; + dev->device.common.version = SENSORS_DEVICE_API_VERSION_1_3; dev->device.common.module = const_cast<hw_module_t *>(module); dev->device.common.close = poll__close; dev->device.activate = poll__activate; dev->device.setDelay = poll__setDelay; dev->device.poll = poll__poll; dev->device.batch = poll__batch; + dev->device.flush = poll__flush; *device = &dev->device.common; - status = 0; + ALOGV("...open_sensors end"); - return status; + return 0; } |