• Mans Rullgard's avatar
    auxdisplay: charlcd: fix x/y command parsing · 9bc30ab8
    Mans Rullgard authored
    The x/y command parsing has been broken since commit 12995706
    ("staging: panel: Fixed checkpatch warning about simple_strtoul()").
    
    Commit b34050fa ("auxdisplay: charlcd: Fix and clean up handling of
    x/y commands") fixed some problems by rewriting the parsing code,
    but also broke things further by removing the check for a complete
    command before attempting to parse it.  As a result, parsing is
    terminated at the first x or y character.
    
    This reinstates the check for a final semicolon.  Whereas the original
    code use strchr(), this is wasteful seeing as the semicolon is always
    at the end of the buffer.  Thus check this character directly instead.
    Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
    Signed-off-by: 's avatarMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
    9bc30ab8
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
arm-charlcd.c Loading commit data...
cfag12864b.c Loading commit data...
cfag12864bfb.c Loading commit data...
charlcd.c Loading commit data...
hd44780.c Loading commit data...
ht16k33.c Loading commit data...
img-ascii-lcd.c Loading commit data...
ks0108.c Loading commit data...
panel.c Loading commit data...