d6731819e3
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:
|
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.sx12xx | ||
hal_common.c | ||
shell.c | ||
sx12xx_common.c | ||
sx12xx_common.h | ||
sx126x.c | ||
sx126x_common.h | ||
sx126x_standalone.c | ||
sx126x_stm32wl.c | ||
sx127x.c |