diff options
author | Aravind Akella <aakella@google.com> | 2014-08-21 16:31:14 -0700 |
---|---|---|
committer | Aravind Akella <aakella@google.com> | 2014-08-21 16:31:14 -0700 |
commit | a7f2cda848c2f057921109f03b843a761ad5d563 (patch) | |
tree | b86cc80c0fa86f5ebc89166c6b5f9f9f3912824c /include | |
parent | 772d85ad350f9a4b8844c72206b6e20b91332b62 (diff) | |
download | hardware_libhardware-a7f2cda848c2f057921109f03b843a761ad5d563.zip hardware_libhardware-a7f2cda848c2f057921109f03b843a761ad5d563.tar.gz hardware_libhardware-a7f2cda848c2f057921109f03b843a761ad5d563.tar.bz2 |
Sensor HAL documentation fix.
Change-Id: Ibc3f643a22163f734ba0ca912f011decf55d9bfa
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/sensors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index 4902ebf..495828a 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -976,6 +976,8 @@ typedef struct sensors_poll_device_1 { * event stream. This applies to all sensors other than one-shot sensors. * If the sensor is a one-shot sensor, flush must return -EINVAL and not generate * any flush complete metadata. + * If the sensor is not active at the time flush() is called, flush() should return + * -EINVAL. */ int (*flush)(struct sensors_poll_device_1* dev, int sensor_handle); |