Skip to content
Browse files

drivers: adxl362: use Kconfig for interrupt mode

Commit 11295c1 added Kconfig options for interrupt mode, but then hard
coded the interrupt mode. This commit uses the Kconfig option to set
the interrupt mode.

Applications expecting the interrupt mode to be something other than
the default will need to be updated.

Signed-off-by: Brett Witherspoon <>
  • Loading branch information...
bwitherspoon authored and MaureenHelm committed May 8, 2019
1 parent ae99052 commit cddb3a1e34c073ad01e389512bc5dcbc26d1a2c7
Showing with 1 addition and 2 deletions.
  1. +1 −2 drivers/sensor/adxl362/adxl362_trigger.c
@@ -154,8 +154,7 @@ int adxl362_init_interrupt(struct device *dev)
return -EINVAL;

/* Configures the inactivity and activity interrupts to be linked. */
ret = adxl362_set_interrupt_mode(dev, ADXL362_MODE_LINK);
ret = adxl362_set_interrupt_mode(dev, CONFIG_ADXL362_INTERRUPT_MODE);

if (ret) {
return -EFAULT;

0 comments on commit cddb3a1

Please sign in to comment.
You can’t perform that action at this time.