lkml.org 
[lkml]   [2020]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 28/32] auxdisplay: hd44780: Remove clear_fast
Date
From: Lars Poeschel <poeschel@lemonage.de>

We remove the hd44780_clear_fast (display) clear implementation. charlcd
will fall back to use hd44780_common_clear_display then, which is much
much faster.

Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
---
drivers/auxdisplay/hd44780.c | 14 --------------
1 file changed, 14 deletions(-)

diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c
index 207ed23e02ce..2e5e7c993933 100644
--- a/drivers/auxdisplay/hd44780.c
+++ b/drivers/auxdisplay/hd44780.c
@@ -38,18 +38,6 @@ struct hd44780 {
struct gpio_desc *pins[PIN_NUM];
};

-static void hd44780_clear_fast(struct charlcd *lcd)
-{
- struct hd44780_common *hdc = lcd->drvdata;
- int pos;
-
- hd44780_common_home(lcd);
- for (pos = 0; pos < min(2, lcd->height) * hdc->hwidth; pos++)
- hd44780_common_print(lcd, ' ');
-
- hd44780_common_home(lcd);
-}
-
static void hd44780_backlight(struct charlcd *lcd, enum charlcd_onoff on)
{
struct hd44780_common *hdc = lcd->drvdata;
@@ -137,7 +125,6 @@ static void hd44780_write_data_gpio8(struct hd44780_common *hdc, int data)
}

static const struct charlcd_ops hd44780_ops_gpio8 = {
- .clear_fast = hd44780_clear_fast,
.backlight = hd44780_backlight,
.print = hd44780_common_print,
.gotoxy = hd44780_common_gotoxy,
@@ -194,7 +181,6 @@ static void hd44780_write_data_gpio4(struct hd44780_common *hdc, int data)
}

static const struct charlcd_ops hd44780_ops_gpio4 = {
- .clear_fast = hd44780_clear_fast,
.backlight = hd44780_backlight,
.print = hd44780_common_print,
.gotoxy = hd44780_common_gotoxy,
--
2.28.0
\
 
 \ /
  Last update: 2020-09-21 16:49    [W:0.300 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site