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/charlcd.h | |
parent | 88645a86e3420cddfe5bb9cd8d7c15aff8f54b46 (diff) |
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/charlcd.h')
-rw-r--r-- | drivers/auxdisplay/charlcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/auxdisplay/charlcd.h b/drivers/auxdisplay/charlcd.h index 236fd0e9e8ab..a6c32c4d1aac 100644 --- a/drivers/auxdisplay/charlcd.h +++ b/drivers/auxdisplay/charlcd.h @@ -43,6 +43,9 @@ struct charlcd { * previously set in addr.x and addr.y by charlcd. * @home: Set cursor to 0, 0. The values in addr.x and addr.y are set to 0, 0 by * charlcd prior to calling this function. + * @clear_display: Again clear the whole display, set the cursor to 0, 0. The + * values in addr.x and addr.y are set to 0, 0 by charlcd prior to calling this + * function. */ struct charlcd_ops { void (*clear_fast)(struct charlcd *lcd); @@ -50,6 +53,7 @@ struct charlcd_ops { int (*print)(struct charlcd *lcd, int c); int (*gotoxy)(struct charlcd *lcd); int (*home)(struct charlcd *lcd); + int (*clear_display)(struct charlcd *lcd); }; struct charlcd *charlcd_alloc(void); |