diff options
Diffstat (limited to 'drivers/video/backlight/lcd.c')
-rw-r--r-- | drivers/video/backlight/lcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c index a482dd7b031..9b3be74cee5 100644 --- a/drivers/video/backlight/lcd.c +++ b/drivers/video/backlight/lcd.c | |||
@@ -101,7 +101,7 @@ static ssize_t lcd_store_power(struct device *dev, | |||
101 | int power = simple_strtoul(buf, &endp, 0); | 101 | int power = simple_strtoul(buf, &endp, 0); |
102 | size_t size = endp - buf; | 102 | size_t size = endp - buf; |
103 | 103 | ||
104 | if (*endp && isspace(*endp)) | 104 | if (isspace(*endp)) |
105 | size++; | 105 | size++; |
106 | if (size != count) | 106 | if (size != count) |
107 | return -EINVAL; | 107 | return -EINVAL; |
@@ -140,7 +140,7 @@ static ssize_t lcd_store_contrast(struct device *dev, | |||
140 | int contrast = simple_strtoul(buf, &endp, 0); | 140 | int contrast = simple_strtoul(buf, &endp, 0); |
141 | size_t size = endp - buf; | 141 | size_t size = endp - buf; |
142 | 142 | ||
143 | if (*endp && isspace(*endp)) | 143 | if (isspace(*endp)) |
144 | size++; | 144 | size++; |
145 | if (size != count) | 145 | if (size != count) |
146 | return -EINVAL; | 146 | return -EINVAL; |