diff options
author | Lars Poeschel <poeschel@lemonage.de> | 2020-11-03 10:58:14 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2020-11-04 11:04:03 +0100 |
commit | 45421ffefbb5f195de02ead952755329ef8576d8 (patch) | |
tree | 37fb7be29a8b25c6df3648512212d669d6dd90d8 /drivers/auxdisplay/panel.c | |
parent | 88645a86e3420cddfe5bb9cd8d7c15aff8f54b46 (diff) | |
download | linux-rpi-45421ffefbb5f195de02ead952755329ef8576d8.tar.gz linux-rpi-45421ffefbb5f195de02ead952755329ef8576d8.tar.bz2 linux-rpi-45421ffefbb5f195de02ead952755329ef8576d8.zip |
auxdisplay: Move clear_display to hd44780_common
This moves the clear_display function from charlcd to hd44780_common.
This is one more step to make charlcd independent from device specific
code. The two hd44780 drivers use the new function from hd44780_common
and charlcd calls this function through its function pointer in its ops
structure.
Reviewed-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay/panel.c')
-rw-r--r-- | drivers/auxdisplay/panel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index b1e874f07456..8adf627529f1 100644 --- a/drivers/auxdisplay/panel.c +++ b/drivers/auxdisplay/panel.c @@ -877,6 +877,7 @@ static const struct charlcd_ops charlcd_serial_ops = { .backlight = lcd_backlight, .gotoxy = hd44780_common_gotoxy, .home = hd44780_common_home, + .clear_display = hd44780_common_clear_display, }; static const struct charlcd_ops charlcd_parallel_ops = { @@ -884,6 +885,7 @@ static const struct charlcd_ops charlcd_parallel_ops = { .backlight = lcd_backlight, .gotoxy = hd44780_common_gotoxy, .home = hd44780_common_home, + .clear_display = hd44780_common_clear_display, }; static const struct charlcd_ops charlcd_tilcd_ops = { @@ -891,6 +893,7 @@ static const struct charlcd_ops charlcd_tilcd_ops = { .backlight = lcd_backlight, .gotoxy = hd44780_common_gotoxy, .home = hd44780_common_home, + .clear_display = hd44780_common_clear_display, }; /* initialize the LCD driver */ |