diff --git a/drivers/lora/rylrxxx.c b/drivers/lora/rylrxxx.c index d89f14ce012..15d17ab406e 100644 --- a/drivers/lora/rylrxxx.c +++ b/drivers/lora/rylrxxx.c @@ -664,7 +664,7 @@ static int rylr_init(const struct device *dev) return err; } -static const struct lora_driver_api rylr_lora_api = { +static DEVICE_API(lora, rylr_lora_api) = { .config = rylr_config, .send = rylr_send, .send_async = rylr_send_async, diff --git a/drivers/lora/sx126x.c b/drivers/lora/sx126x.c index aeb9efe8981..835f8ec56e1 100644 --- a/drivers/lora/sx126x.c +++ b/drivers/lora/sx126x.c @@ -463,7 +463,7 @@ static int sx126x_lora_init(const struct device *dev) return 0; } -static const struct lora_driver_api sx126x_lora_api = { +static DEVICE_API(lora, sx126x_lora_api) = { .config = sx12xx_lora_config, .send = sx12xx_lora_send, .send_async = sx12xx_lora_send_async, diff --git a/drivers/lora/sx127x.c b/drivers/lora/sx127x.c index 4826ea47325..1dc6404495f 100644 --- a/drivers/lora/sx127x.c +++ b/drivers/lora/sx127x.c @@ -625,7 +625,7 @@ static int sx127x_lora_init(const struct device *dev) return 0; } -static const struct lora_driver_api sx127x_lora_api = { +static DEVICE_API(lora, sx127x_lora_api) = { .config = sx12xx_lora_config, .send = sx12xx_lora_send, .send_async = sx12xx_lora_send_async,