summaryrefslogtreecommitdiffstats
path: root/drivers/auxdisplay
diff options
context:
space:
mode:
authorRobert Abel <rabel@robertabel.eu>2018-02-10 00:50:12 +0100
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>2018-04-12 19:02:43 +0200
commit9629ccca3b82491402ebbed8c03d34d32bb59d58 (patch)
tree021cd2ba163cbce5853fe904a71d70ed52b4bbb6 /drivers/auxdisplay
parentauxdisplay: charlcd: use null character instead of zero literal to terminate ... (diff)
downloadlinux-9629ccca3b82491402ebbed8c03d34d32bb59d58.tar.xz
linux-9629ccca3b82491402ebbed8c03d34d32bb59d58.zip
auxdisplay: charlcd: replace octal literal with form-feed escape sequence
There is no need to resort to octal escape sequence for the form feed character when an established escape sequence exists. Signed-off-by: Robert Abel <rabel@robertabel.eu> Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r--drivers/auxdisplay/charlcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c
index b61cea36add5..ee39d1a85bf7 100644
--- a/drivers/auxdisplay/charlcd.c
+++ b/drivers/auxdisplay/charlcd.c
@@ -556,7 +556,7 @@ static void charlcd_write_char(struct charlcd *lcd, char c)
/* back one char again */
lcd->ops->write_cmd(lcd, LCD_CMD_SHIFT);
break;
- case '\014':
+ case '\f':
/* quickly clear the display */
charlcd_clear_fast(lcd);
break;