Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205882
b: refs/heads/master
c: d85170e
h: refs/heads/master
v: v3
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent 3d686b9 commit 8eecd27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47c7157f3406e83648dad1c5c4e6e8c0f574dfc3
refs/heads/master: d85170ed30a533ef6832cf11b38488e562c311c8
19 changes: 7 additions & 12 deletions trunk/drivers/staging/panel/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <linux/fcntl.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/ctype.h>
#include <linux/parport.h>
#include <linux/version.h>
Expand Down Expand Up @@ -1179,22 +1180,16 @@ static inline int handle_lcd_special_code(void)
break;

while (*esc) {
char *endp;

if (*esc == 'x') {
esc++;
lcd_addr_x = 0;
while (isdigit(*esc)) {
lcd_addr_x = lcd_addr_x * 10 +
(*esc - '0');
esc++;
}
lcd_addr_x = simple_strtoul(esc, &endp, 10);
esc = endp;
} else if (*esc == 'y') {
esc++;
lcd_addr_y = 0;
while (isdigit(*esc)) {
lcd_addr_y = lcd_addr_y * 10 +
(*esc - '0');
esc++;
}
lcd_addr_y = simple_strtoul(esc, &endp, 10);
esc = endp;
} else
break;
}
Expand Down

0 comments on commit 8eecd27

Please sign in to comment.