mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing
The ROP3 attribute is expressed as an integer in the 0-255 range. Remove the wrong conversion to boolean when parsing it. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
This commit is contained in:
parent
b3924dd7a9
commit
14048ffed0
1 changed files with 1 additions and 1 deletions
|
|
@ -1461,7 +1461,7 @@ overlay_rop3_store(struct device *dev, struct device_attribute *attr,
|
|||
unsigned int rop3;
|
||||
char *endp;
|
||||
|
||||
rop3 = !!simple_strtoul(buf, &endp, 10);
|
||||
rop3 = simple_strtoul(buf, &endp, 10);
|
||||
if (isspace(*endp))
|
||||
endp++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue