aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/panel
diff options
context:
space:
mode:
authorPelle Windestam <iceaway@gmail.com>2011-08-30 20:29:24 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-06 16:49:29 -0700
commit129957069e6af42a6e021d90679c56662c95f7e1 (patch)
tree4792c7f0b8a0f31c598fea045568b5dd6388d8db /drivers/staging/panel
parentstaging: et131x: Remove redundant phy code (diff)
downloadlinux-dev-129957069e6af42a6e021d90679c56662c95f7e1.tar.xz
linux-dev-129957069e6af42a6e021d90679c56662c95f7e1.zip
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: Pelle Windestam <iceaway@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/panel')
-rw-r--r--drivers/staging/panel/panel.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index b303b7e42b63..4683d5f355c0 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -1179,16 +1179,14 @@ static inline int handle_lcd_special_code(void)
break;
while (*esc) {
- char *endp;
-
if (*esc == 'x') {
esc++;
- lcd_addr_x = simple_strtoul(esc, &endp, 10);
- esc = endp;
+ if (kstrtoul(esc, 10, &lcd_addr_x) < 0)
+ break;
} else if (*esc == 'y') {
esc++;
- lcd_addr_y = simple_strtoul(esc, &endp, 10);
- esc = endp;
+ if (kstrtoul(esc, 10, &lcd_addr_y) < 0)
+ break;
} else
break;
}