Commit 12995706 authored by Pelle Windestam's avatar Pelle Windestam Committed by Greg Kroah-Hartman

staging: panel: Fixed checkpatch warning about simple_strtoul()

Fixed the checkpatch warning about sing simple_strtoul instead of
kstrtoul() in panel.c.
Signed-off-by: default avatarPelle Windestam <iceaway@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3cecd920
...@@ -1179,16 +1179,14 @@ static inline int handle_lcd_special_code(void) ...@@ -1179,16 +1179,14 @@ static inline int handle_lcd_special_code(void)
break; break;
while (*esc) { while (*esc) {
char *endp;
if (*esc == 'x') { if (*esc == 'x') {
esc++; esc++;
lcd_addr_x = simple_strtoul(esc, &endp, 10); if (kstrtoul(esc, 10, &lcd_addr_x) < 0)
esc = endp; break;
} else if (*esc == 'y') { } else if (*esc == 'y') {
esc++; esc++;
lcd_addr_y = simple_strtoul(esc, &endp, 10); if (kstrtoul(esc, 10, &lcd_addr_y) < 0)
esc = endp; break;
} else } else
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment