summaryrefslogtreecommitdiff
path: root/drivers/auxdisplay
diff options
context:
space:
mode:
authorLars Poeschel <poeschel@lemonage.de>2020-11-03 12:58:22 +0300
committerMiguel Ojeda <ojeda@kernel.org>2020-11-04 13:04:04 +0300
commit7b231bb5d0bee86afc40db9ddfd50ba39ef73769 (patch)
tree1d8305a36d376eee48d8206a3e424ca826883334 /drivers/auxdisplay
parenta2060f288e15a69b2191b7e9df2e3d470e27e433 (diff)
downloadlinux-7b231bb5d0bee86afc40db9ddfd50ba39ef73769.tar.xz
auxdisplay: hd44780_common: Reduce clear_display timeout
Digging in the hd44780 datasheet revealed that the timeout needed after clearing the whole display is only 1,64ms not 15ms. So we can reduce that timeout. Link: https://lore.kernel.org/lkml/20200922092121.GG16421@1wt.eu/ Link: https://www.crystalfontz.com/controllers/Hitachi/HD44780/433/ Signed-off-by: Lars Poeschel <poeschel@lemonage.de> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r--drivers/auxdisplay/hd44780_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/auxdisplay/hd44780_common.c b/drivers/auxdisplay/hd44780_common.c
index c528fb8e8808..bd93a4d3367e 100644
--- a/drivers/auxdisplay/hd44780_common.c
+++ b/drivers/auxdisplay/hd44780_common.c
@@ -83,8 +83,8 @@ int hd44780_common_clear_display(struct charlcd *lcd)
struct hd44780_common *hdc = lcd->drvdata;
hdc->write_cmd(hdc, LCD_CMD_DISPLAY_CLEAR);
- /* we must wait a few milliseconds (15) */
- long_sleep(15);
+ /* datasheet says to wait 1,64 milliseconds */
+ long_sleep(2);
return 0;
}
EXPORT_SYMBOL_GPL(hd44780_common_clear_display);