“1b1d76e2df2a0aa965d6a227db7061d3fff029b1”上不存在“README.md”
提交 14048ffe 编写于 作者: L Laurent Pinchart 提交者: Tomi Valkeinen

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 b3924dd7
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部