]> git.baikalelectronics.ru Git - kernel.git/commit
auxdisplay: charlcd: deduplicate simple_strtoul()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 5 Dec 2019 00:50:36 +0000 (16:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Dec 2019 03:44:12 +0000 (19:44 -0800)
commite1d373caf38e81c7f675a67593918612dc967f85
tree08b6c3d47ed692e1f7bd06ce7b5dede50f50ea1b
parentba3a3eeb80349d2168aa4d5ba869a0a2b040fd30
auxdisplay: charlcd: deduplicate simple_strtoul()

Like in commit 3efcbe15def4 ("serial: core: Fix handling of options
after MMIO address") we may use simple_strtoul() which in comparison to
kstrtoul() can do conversion in-place without additional and unnecessary
code to be written.

Link: http://lkml.kernel.org/r/20190801192904.41087-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Mans Rullgard <mans@mansr.com>
Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/auxdisplay/charlcd.c