diff options
author | Lars Poeschel <poeschel@lemonage.de> | 2020-11-03 10:58:20 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2020-11-04 11:04:04 +0100 |
commit | 339acb082987a6b0aa7c67a5a77b29f6c81962f6 (patch) | |
tree | 82479df566aa68da55d9bf42427963cd27b2ed9d /drivers/auxdisplay/panel.c | |
parent | 8a86270ef0ea5ebc37c9a1223589c1d45c7e07de (diff) | |
download | linux-339acb082987a6b0aa7c67a5a77b29f6c81962f6.tar.bz2 |
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 <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 3d33d7cc979c..b0d2ae5b9be8 100644 --- a/drivers/auxdisplay/panel.c +++ b/drivers/auxdisplay/panel.c @@ -886,6 +886,7 @@ static const struct charlcd_ops charlcd_serial_ops = { .blink = hd44780_common_blink, .fontsize = hd44780_common_fontsize, .lines = hd44780_common_lines, + .redefine_char = hd44780_common_redefine_char, }; static const struct charlcd_ops charlcd_parallel_ops = { @@ -902,6 +903,7 @@ static const struct charlcd_ops charlcd_parallel_ops = { .blink = hd44780_common_blink, .fontsize = hd44780_common_fontsize, .lines = hd44780_common_lines, + .redefine_char = hd44780_common_redefine_char, }; static const struct charlcd_ops charlcd_tilcd_ops = { @@ -918,6 +920,7 @@ static const struct charlcd_ops charlcd_tilcd_ops = { .blink = hd44780_common_blink, .fontsize = hd44780_common_fontsize, .lines = hd44780_common_lines, + .redefine_char = hd44780_common_redefine_char, }; /* initialize the LCD driver */ |