From 339acb082987a6b0aa7c67a5a77b29f6c81962f6 Mon Sep 17 00:00:00 2001 From: Lars Poeschel Date: Tue, 3 Nov 2020 10:58:20 +0100 Subject: auxdisplay: Move char redefine code to hd44780_common Take the code to redefine characters out of charlcd and move it to hd44780_common, as this is hd44780 specific. There is now a function hd44780_common_redefine_char that drivers use and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel Signed-off-by: Miguel Ojeda --- drivers/auxdisplay/charlcd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/auxdisplay/charlcd.h') diff --git a/drivers/auxdisplay/charlcd.h b/drivers/auxdisplay/charlcd.h index 5a89bdeb659a..3339e8c2554e 100644 --- a/drivers/auxdisplay/charlcd.h +++ b/drivers/auxdisplay/charlcd.h @@ -75,6 +75,7 @@ struct charlcd { * @cursor: Turn cursor on or off. * @blink: Turn cursor blink on or off. * @lines: One or two lines. + * @redefine_char: Redefine the actual pixel matrix of character. */ struct charlcd_ops { void (*clear_fast)(struct charlcd *lcd); @@ -91,6 +92,7 @@ struct charlcd_ops { int (*blink)(struct charlcd *lcd, enum charlcd_onoff on); int (*fontsize)(struct charlcd *lcd, enum charlcd_fontsize size); int (*lines)(struct charlcd *lcd, enum charlcd_lines lines); + int (*redefine_char)(struct charlcd *lcd, char *esc); }; void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on); -- cgit v1.2.3