From ee387c3ddad44857141f36e632ea5fd67d7b61ea Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 27 Nov 2024 12:20:51 +0100 Subject: [PATCH] drivers: auxdisplay: Place API into iterable section Add wrapper DEVICE_API macro to all auxdisplay_driver_api instances. Signed-off-by: Pieter De Gendt --- drivers/auxdisplay/auxdisplay_hd44780.c | 2 +- drivers/auxdisplay/auxdisplay_itron.c | 2 +- drivers/auxdisplay/auxdisplay_jhd1313.c | 2 +- drivers/auxdisplay/auxdisplay_pt6314.c | 2 +- drivers/auxdisplay/auxdisplay_serlcd.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/auxdisplay/auxdisplay_hd44780.c b/drivers/auxdisplay/auxdisplay_hd44780.c index 1d0441a31d932..57d53827101a6 100644 --- a/drivers/auxdisplay/auxdisplay_hd44780.c +++ b/drivers/auxdisplay/auxdisplay_hd44780.c @@ -523,7 +523,7 @@ static int auxdisplay_hd44780_write(const struct device *dev, const uint8_t *tex return 0; } -static const struct auxdisplay_driver_api auxdisplay_hd44780_auxdisplay_api = { +static DEVICE_API(auxdisplay, auxdisplay_hd44780_auxdisplay_api) = { .display_on = auxdisplay_hd44780_display_on, .display_off = auxdisplay_hd44780_display_off, .cursor_set_enabled = auxdisplay_hd44780_cursor_set_enabled, diff --git a/drivers/auxdisplay/auxdisplay_itron.c b/drivers/auxdisplay/auxdisplay_itron.c index b5aa5d89f673f..a459035f5b1ce 100644 --- a/drivers/auxdisplay/auxdisplay_itron.c +++ b/drivers/auxdisplay/auxdisplay_itron.c @@ -406,7 +406,7 @@ static int auxdisplay_itron_write(const struct device *dev, const uint8_t *data, return send_cmd(dev, data, len, false, true); } -static const struct auxdisplay_driver_api auxdisplay_itron_auxdisplay_api = { +static DEVICE_API(auxdisplay, auxdisplay_itron_auxdisplay_api) = { .display_on = auxdisplay_itron_display_on, .display_off = auxdisplay_itron_display_off, .cursor_set_enabled = auxdisplay_itron_cursor_set_enabled, diff --git a/drivers/auxdisplay/auxdisplay_jhd1313.c b/drivers/auxdisplay/auxdisplay_jhd1313.c index 9b4ef08e88b91..998a5976cb601 100644 --- a/drivers/auxdisplay/auxdisplay_jhd1313.c +++ b/drivers/auxdisplay/auxdisplay_jhd1313.c @@ -335,7 +335,7 @@ static int auxdisplay_jhd1313_capabilities_get(const struct device *dev, return 0; } -static const struct auxdisplay_driver_api auxdisplay_jhd1313_auxdisplay_api = { +static DEVICE_API(auxdisplay, auxdisplay_jhd1313_auxdisplay_api) = { .display_on = auxdisplay_jhd1313_display_on, .display_off = auxdisplay_jhd1313_display_off, .cursor_set_enabled = auxdisplay_jhd1313_cursor_set_enabled, diff --git a/drivers/auxdisplay/auxdisplay_pt6314.c b/drivers/auxdisplay/auxdisplay_pt6314.c index e204783f8f762..293337b25138d 100644 --- a/drivers/auxdisplay/auxdisplay_pt6314.c +++ b/drivers/auxdisplay/auxdisplay_pt6314.c @@ -284,7 +284,7 @@ static int auxdisplay_pt6314_init(const struct device *dev) return 0; } -static const struct auxdisplay_driver_api auxdisplay_pt6314_auxdisplay_api = { +static DEVICE_API(auxdisplay, auxdisplay_pt6314_auxdisplay_api) = { .display_on = auxdisplay_pt6314_display_on, .display_off = auxdisplay_pt6314_display_off, .cursor_set_enabled = auxdisplay_pt6314_cursor_set_enabled, diff --git a/drivers/auxdisplay/auxdisplay_serlcd.c b/drivers/auxdisplay/auxdisplay_serlcd.c index 19c7154de293c..7e2c6bcb64bda 100644 --- a/drivers/auxdisplay/auxdisplay_serlcd.c +++ b/drivers/auxdisplay/auxdisplay_serlcd.c @@ -392,7 +392,7 @@ static int auxdisplay_serlcd_init(const struct device *dev) return 0; } -static const struct auxdisplay_driver_api auxdisplay_serlcd_auxdisplay_api = { +static DEVICE_API(auxdisplay, auxdisplay_serlcd_auxdisplay_api) = { .display_on = auxdisplay_serlcd_display_on, .display_off = auxdisplay_serlcd_display_off, .cursor_set_enabled = auxdisplay_serlcd_cursor_set_enabled,