Merge "Sensor: HAL guideline clarification upon activation request" am: 0b2872c784
am: 3a35beab7d
Change-Id: I43a8df7e11b3eaab1df81bc2ec9f7639b5c48ecf
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index dde997f..d058d3b 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -578,10 +578,11 @@
* sensor_handle is the handle of the sensor to change.
* enabled set to 1 to enable, or 0 to disable the sensor.
*
- * After sensor de-activation, existing sensor events that have not
- * been picked up by poll() should be abandoned immediately so that
- * subsequent activation will not get stale sensor events (events
- * that is generated prior to the latter activation).
+ * Before sensor activation, existing sensor events that have not
+ * been picked up by poll() should be abandoned so that application
+ * upon new activation request will not get stale events.
+ * (events that are generated during latter activation or during
+ * data injection mode after sensor deactivation)
*
* Return 0 on success, negative errno code otherwise.
*/