zephyr/drivers/lora
Fabio Baltieri d6731819e3 drivers: sx126x_standalone: use the correct dev_data for dio1 callback
The current code uses dev->data for finding back the instance data
structure in various places, but for the dio1 irq callback, dev refers
to the GPIO device node (not the LORA radio one), so dev->data returns a
pointer to the GPIO data rather than a "struct sx126x_data".

Fix that by using CONTAINER_OF to find back the correct structure from
the callback pointer.

The bug was introduced in:

  74efaa920a drivers: sx126x: refactor few functions for stm32wl support

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
2021-08-16 04:57:41 -04:00
..
CMakeLists.txt drivers: sx126x: add support for the stm32wl chip 2021-07-15 21:30:28 -04:00
Kconfig lora: sx12xx_common: transition to k_poll_signal 2021-08-08 04:19:27 -04:00
Kconfig.sx12xx drivers: sx126x: add support for the stm32wl chip 2021-07-15 21:30:28 -04:00
hal_common.c
shell.c
sx12xx_common.c lora: sx12xx_common: thread safe RX 2021-08-08 04:19:27 -04:00
sx12xx_common.h
sx126x.c drivers: sx126x: add support for the stm32wl chip 2021-07-15 21:30:28 -04:00
sx126x_common.h drivers: sx126x: add support for the stm32wl chip 2021-07-15 21:30:28 -04:00
sx126x_standalone.c drivers: sx126x_standalone: use the correct dev_data for dio1 callback 2021-08-16 04:57:41 -04:00
sx126x_stm32wl.c drivers: sx126x: add support for the stm32wl chip 2021-07-15 21:30:28 -04:00
sx127x.c