summaryrefslogtreecommitdiff
path: root/include/accelgyro.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-02-24 20:18:57 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-09 20:05:06 -0800
commitbc766130becff13136baa53070749899dce687f6 (patch)
treec36329b8f533e1ad095120af655f20bfcf462870 /include/accelgyro.h
parentf31dcc649a40b1dae010898c4613be81a3075a95 (diff)
downloadchrome-ec-bc766130becff13136baa53070749899dce687f6.tar.gz
motion: remove load_fifo
To prevent invalid timestamping, call load_fifo only when we get a FIFO interrupt. In consequence, remove load_fifo entry point and only process fifo inside the IRQ. Add helper function to know when we are in forced mode (the EC needs to periodically read sensor data or interrupt driven). BUG=b:73557414 BRANCH=master TEST=compile Change-Id: I959e476f3f7215be95424c07223f7421e8b13da1 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/938146 Commit-Ready: Alexandru M Stan <amstan@chromium.org> Tested-by: Alexandru M Stan <amstan@chromium.org> Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r--include/accelgyro.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h
index 85e4bcc04a..ea7b3efa6c 100644
--- a/include/accelgyro.h
+++ b/include/accelgyro.h
@@ -101,20 +101,6 @@ struct accelgyro_drv {
*/
int (*irq_handler)(struct motion_sensor_t *s, uint32_t *event);
#endif
-#ifdef CONFIG_ACCEL_FIFO
- /**
- * Retrieve hardware FIFO from sensor,
- * - put data in Sensor Hub fifo.
- * - update sensor raw_xyz vector with the last information.
- * We put raw data in hub fifo and process data from there.
- * @s Pointer to sensor data.
- *
- * NOTE: If a new driver supports this function, be sure to add a check
- * for spoof_mode in order to load the sensor stack with the spoofed
- * data. See accelgyro_bmi160.c::load_fifo for an example.
- */
- int (*load_fifo)(struct motion_sensor_t *s);
-#endif
#ifdef CONFIG_GESTURE_DETECTION
/**
* handler for setting/getting activity information.