OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772d85a
)
Sensor HAL documentation fix.
author
Aravind Akella
<aakella@google.com>
Thu, 21 Aug 2014 23:31:14 +0000
(16:31 -0700)
committer
Aravind Akella
<aakella@google.com>
Thu, 21 Aug 2014 23:31:14 +0000
(16:31 -0700)
Change-Id: Ibc3f643a22163f734ba0ca912f011decf55d9bfa
include/hardware/sensors.h
patch
|
blob
|
history
diff --git
a/include/hardware/sensors.h
b/include/hardware/sensors.h
index
4902ebf
..
495828a
100644
(file)
--- 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);