drivers: sensor: Convert fxas21002 to new gpio api
Converts the fxas21002 sensor driver to the new gpio api. Updates device trees for all boards with this sensor to active low gpio interrupts by default. Tested on the hexiwear_k64 board. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
b0ad7bb594
commit
0f38786889
6 changed files with 21 additions and 8 deletions
|
@ -293,9 +293,11 @@ static const struct fxas21002_config fxas21002_config = {
|
|||
#ifdef CONFIG_FXAS21002_DRDY_INT1
|
||||
.gpio_name = DT_INST_0_NXP_FXAS21002_INT1_GPIOS_CONTROLLER,
|
||||
.gpio_pin = DT_INST_0_NXP_FXAS21002_INT1_GPIOS_PIN,
|
||||
.gpio_flags = DT_INST_0_NXP_FXAS21002_INT1_GPIOS_FLAGS,
|
||||
#else
|
||||
.gpio_name = DT_INST_0_NXP_FXAS21002_INT2_GPIOS_CONTROLLER,
|
||||
.gpio_pin = DT_INST_0_NXP_FXAS21002_INT2_GPIOS_PIN,
|
||||
.gpio_flags = DT_INST_0_NXP_FXAS21002_INT2_GPIOS_FLAGS,
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue