Skip to content

Commit 566c122

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: mipi_dsi: Place API into iterable section
Add wrapper DEVICE_API macro to all mipi_dsi_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 812347f commit 566c122

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/mipi_dsi/dsi_mcux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static ssize_t dsi_mcux_transfer(const struct device *dev, uint8_t channel,
300300

301301
}
302302

303-
static struct mipi_dsi_driver_api dsi_mcux_api = {
303+
static DEVICE_API(mipi_dsi, dsi_mcux_api) = {
304304
.attach = dsi_mcux_attach,
305305
.transfer = dsi_mcux_transfer,
306306
};

drivers/mipi_dsi/dsi_mcux_2l.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ static ssize_t dsi_mcux_transfer(const struct device *dev, uint8_t channel,
464464

465465
}
466466

467-
static struct mipi_dsi_driver_api dsi_mcux_api = {
467+
static DEVICE_API(mipi_dsi, dsi_mcux_api) = {
468468
.attach = dsi_mcux_attach,
469469
.detach = dsi_mcux_detach,
470470
.transfer = dsi_mcux_transfer,

drivers/mipi_dsi/dsi_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static ssize_t mipi_dsi_stm32_transfer(const struct device *dev, uint8_t channel
387387
return len;
388388
}
389389

390-
static struct mipi_dsi_driver_api dsi_stm32_api = {
390+
static DEVICE_API(mipi_dsi, dsi_stm32_api) = {
391391
.attach = mipi_dsi_stm32_attach,
392392
.transfer = mipi_dsi_stm32_transfer,
393393
};

drivers/mipi_dsi/dsi_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int vnd_mipi_dsi_detach(const struct device *dev, uint8_t channel,
4343
return -ENOTSUP;
4444
}
4545

46-
static struct mipi_dsi_driver_api vnd_mipi_dsi_api = {
46+
static DEVICE_API(mipi_dsi, vnd_mipi_dsi_api) = {
4747
.attach = vnd_mipi_dsi_attach,
4848
.transfer = vnd_mipi_dsi_transfer,
4949
.detach = vnd_mipi_dsi_detach,

0 commit comments

Comments
 (0)