Skip to content

Commit 7b231bb

Browse files
poeschelojeda
authored andcommitted
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/[email protected]/ Link: https://www.crystalfontz.com/controllers/Hitachi/HD44780/433/ Signed-off-by: Lars Poeschel <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent a2060f2 commit 7b231bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/auxdisplay/hd44780_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ int hd44780_common_clear_display(struct charlcd *lcd)
8383
struct hd44780_common *hdc = lcd->drvdata;
8484

8585
hdc->write_cmd(hdc, LCD_CMD_DISPLAY_CLEAR);
86-
/* we must wait a few milliseconds (15) */
87-
long_sleep(15);
86+
/* datasheet says to wait 1,64 milliseconds */
87+
long_sleep(2);
8888
return 0;
8989
}
9090
EXPORT_SYMBOL_GPL(hd44780_common_clear_display);

0 commit comments

Comments
 (0)