From f307e200c21e80928b6872c85cb7273faf5285e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 8 Jun 2023 19:50:26 +0200 Subject: [PATCH] drivers: auxdisplay: Fix jhd1313 compilation issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added several missing undeclared config variables causing the driver to not compile properly. Fixes #59078. Signed-off-by: Benjamin Cabé --- drivers/auxdisplay/auxdisplay_jhd1313.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/auxdisplay/auxdisplay_jhd1313.c b/drivers/auxdisplay/auxdisplay_jhd1313.c index 8d304851311..e17c190d31c 100644 --- a/drivers/auxdisplay/auxdisplay_jhd1313.c +++ b/drivers/auxdisplay/auxdisplay_jhd1313.c @@ -110,6 +110,7 @@ static int auxdisplay_jhd1313_cursor_position_set(const struct device *dev, enum auxdisplay_position type, int16_t x, int16_t y) { + const struct auxdisplay_jhd1313_config *config = dev->config; unsigned char data[2]; if (type != AUXDISPLAY_POSITION_ABSOLUTE) { @@ -306,6 +307,7 @@ static int auxdisplay_jhd1313_initialize(const struct device *dev) static int auxdisplay_jhd1313_display_on(const struct device *dev) { + const struct auxdisplay_jhd1313_config *config = dev->config; struct auxdisplay_jhd1313_data *data = dev->data; data->power = true; @@ -314,6 +316,7 @@ static int auxdisplay_jhd1313_display_on(const struct device *dev) static int auxdisplay_jhd1313_display_off(const struct device *dev) { + const struct auxdisplay_jhd1313_config *config = dev->config; struct auxdisplay_jhd1313_data *data = dev->data; data->power = false;