drivers: sensor: lis3mdl: replace deprecated gpio_pin callback API
gpio_pin_disable_callback is to be replaced by gpio_pin_interrupt_configure. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
bcf4d1249e
commit
4b25e75c8f
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,9 @@ int lis3mdl_trigger_set(struct device *dev,
|
|||
|
||||
__ASSERT_NO_MSG(trig->type == SENSOR_TRIG_DATA_READY);
|
||||
|
||||
gpio_pin_disable_callback(drv_data->gpio,
|
||||
DT_INST_0_ST_LIS3MDL_MAGN_IRQ_GPIOS_PIN);
|
||||
gpio_pin_interrupt_configure(drv_data->gpio,
|
||||
DT_INST_0_ST_LIS3MDL_MAGN_IRQ_GPIOS_PIN,
|
||||
GPIO_INT_DISABLE);
|
||||
|
||||
drv_data->data_ready_handler = handler;
|
||||
if (handler == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue