Skip to content

Commit

Permalink
drivers: sensor: lsm6dsl: fixed irq_pin for interrupt handling
Browse files Browse the repository at this point in the history
Obtaining irq_pin from dev leads to disabling interrupts
on unpredictable pin, as dev points to GPIO, not LSM6DSL.

Fixes zephyrproject-rtos#29721

Signed-off-by: Yurii Gubin <[email protected]>
  • Loading branch information
Yurii Gubin authored and MaureenHelm committed Nov 6, 2020
1 parent cea6fb7 commit f700d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sensor/lsm6dsl/lsm6dsl_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ int lsm6dsl_trigger_set(const struct device *dev,
static void lsm6dsl_gpio_callback(const struct device *dev,
struct gpio_callback *cb, uint32_t pins)
{
const struct lsm6dsl_config *config = dev->config;
struct lsm6dsl_data *drv_data =
CONTAINER_OF(cb, struct lsm6dsl_data, gpio_cb);
const struct lsm6dsl_config *config = drv_data->dev->config;

ARG_UNUSED(pins);

Expand Down

0 comments on commit f700d74

Please sign in to comment.