auxdisplay: charlcd: Fix and clean up handling of x/y commands
authorMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Tue, 27 Feb 2018 22:09:52 +0000 (23:09 +0100)
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Thu, 12 Apr 2018 17:02:44 +0000 (19:02 +0200)
commitb34050fadb86c55d2066ec78a9d05e9809ff5812
treec57d310e04c9b6458ea80fedbb65bbbafdcd0750
parent2e8c04f75731bbd968fa77e94ed856f2dcf53ae6
auxdisplay: charlcd: Fix and clean up handling of x/y commands

The current version is not parsing multiple x/y commands as the code
originally intended. On top of that, kstrtoul() expects
NULL-terminated strings. Finally, the code does two passes over
the string.

Some explanations about the supported syntax are added as well.

Cc: Willy Tarreau <w@1wt.eu>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Robert Abel <rabel@robertabel.eu>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
drivers/auxdisplay/charlcd.c