diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-09-01 15:25:01 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-18 17:55:32 -0700 |
commit | bde89ebc203d9d15ede2cefb3eea8511d1fc3b65 (patch) | |
tree | e6b039f3f45ace4086e3f9ed99b0344a3437a7f1 /driver/als_si114x.c | |
parent | 3788806149da2732b00e31316c7996b96ad60e01 (diff) | |
download | chrome-ec-bde89ebc203d9d15ede2cefb3eea8511d1fc3b65.tar.gz |
common: motion: move gesture actions in motion task.
Change the IRQ interface to allow adding events.
Move code to send the lightbar sequence from gesture.c to motion task.
TEST=compile, works on Ryu.
BRANCH=smaug
BUG=chrome-os-partner:44754
Change-Id: I981ea123ebef0e8e3d6aa320eade89f10e83b6fc
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/296822
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'driver/als_si114x.c')
-rw-r--r-- | driver/als_si114x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/als_si114x.c b/driver/als_si114x.c index 3eeab5af6a..a993f4b99e 100644 --- a/driver/als_si114x.c +++ b/driver/als_si114x.c @@ -147,13 +147,13 @@ void si114x_interrupt(enum gpio_signal signal) * For now, we just print out. We should set a bitmask motion sense code will * act upon. */ -static int irq_handler(struct motion_sensor_t *s, uint32_t event) +static int irq_handler(struct motion_sensor_t *s, uint32_t *event) { int ret = EC_SUCCESS, val; struct si114x_drv_data_t *data = SI114X_GET_DATA(s); struct si114x_typed_data_t *type_data = SI114X_GET_TYPED_DATA(s); - if (!(event & CONFIG_ALS_SI114X_INT_EVENT)) + if (!(*event & CONFIG_ALS_SI114X_INT_EVENT)) return EC_SUCCESS; ret = raw_read8(s->addr, SI114X_REG_IRQ_STATUS, &val); |