diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2022-01-29 17:47:41 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-02 10:10:30 +0000 |
commit | 15310f442b612de17e549a307f25d612d56a2015 (patch) | |
tree | c806705d7dcb91f7d203e28f130a09bb99716e4f | |
parent | cb3e4b180ee4c96bfb21ff09f1ef93d47a04aa96 (diff) | |
download | chrome-ec-15310f442b612de17e549a307f25d612d56a2015.tar.gz |
driver/als_cm32183: Remove interrupt handler
Current driver does not enable interrupt.
The current interrupt handler (called by motionsense code each time
the main task is scheduled) would unnecessarily read the LUX register.
With the current driver, the sensor should be used in forced mode,
motionsense calling the ->read() entry point at fixed intervals.
BUG=b:208721153
BRANCH=none
TEST=compile
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: Ic614f537b3d5123d8f8e2615ae7c6af5d8fce47e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3425520
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | driver/als_cm32183.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/driver/als_cm32183.c b/driver/als_cm32183.c index e5efa29f03..0a3981fd91 100644 --- a/driver/als_cm32183.c +++ b/driver/als_cm32183.c @@ -107,13 +107,6 @@ static int cm32183_get_offset(const struct motion_sensor_t *s, return EC_SUCCESS; } -#ifdef CONFIG_ACCEL_INTERRUPTS -static int cm32183_irq_handler(struct motion_sensor_t *s, uint32_t *event) -{ - return cm32183_read(s, s->xyz); -} -#endif - /** * Initialise CM32183 light sensor. */ @@ -145,7 +138,4 @@ const struct accelgyro_drv cm32183_drv = { .get_offset = cm32183_get_offset, .set_data_rate = cm32183_set_data_rate, .get_data_rate = cm32183_get_data_rate, -#ifdef CONFIG_ACCEL_INTERRUPTS - .irq_handler = cm32183_irq_handler, -#endif }; |