aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/auxdisplay/hd44780_common.h
diff options
context:
space:
mode:
authorLars Poeschel <poeschel@lemonage.de>2020-11-03 10:58:14 +0100
committerMiguel Ojeda <ojeda@kernel.org>2020-11-04 11:04:03 +0100
commit45421ffefbb5f195de02ead952755329ef8576d8 (patch)
tree37fb7be29a8b25c6df3648512212d669d6dd90d8 /drivers/auxdisplay/hd44780_common.h
parentauxdisplay: add home to charlcd_ops (diff)
downloadlinux-dev-45421ffefbb5f195de02ead952755329ef8576d8.tar.xz
linux-dev-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/hd44780_common.h')
-rw-r--r--drivers/auxdisplay/hd44780_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/auxdisplay/hd44780_common.h b/drivers/auxdisplay/hd44780_common.h
index c91070ed931b..ef11935a3764 100644
--- a/drivers/auxdisplay/hd44780_common.h
+++ b/drivers/auxdisplay/hd44780_common.h
@@ -17,4 +17,5 @@ struct hd44780_common {
int hd44780_common_print(struct charlcd *lcd, int c);
int hd44780_common_gotoxy(struct charlcd *lcd);
int hd44780_common_home(struct charlcd *lcd);
+int hd44780_common_clear_display(struct charlcd *lcd);
struct hd44780_common *hd44780_common_alloc(void);