* [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing
@ 2015-03-14 15:38 Laurent Pinchart
2015-03-15 9:32 ` Geert Uytterhoeven
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Laurent Pinchart @ 2015-03-14 15:38 UTC (permalink / raw)
To: linux-fbdev
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 <dan.carpenter@oracle.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
drivers/video/fbdev/sh_mobile_lcdcfb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c
index d3013cd9f976..23421ec1c4e4 100644
--- a/drivers/video/fbdev/sh_mobile_lcdcfb.c
+++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c
@@ -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++;
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing
2015-03-14 15:38 [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing Laurent Pinchart
@ 2015-03-15 9:32 ` Geert Uytterhoeven
2015-03-17 22:27 ` Laurent Pinchart
2015-03-20 11:15 ` Tomi Valkeinen
2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2015-03-15 9:32 UTC (permalink / raw)
To: linux-fbdev
On Sat, Mar 14, 2015 at 4:38 PM, Laurent Pinchart
<laurent.pinchart+renesas@ideasonboard.com> wrote:
> 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 <dan.carpenter@oracle.com>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing
2015-03-14 15:38 [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing Laurent Pinchart
2015-03-15 9:32 ` Geert Uytterhoeven
@ 2015-03-17 22:27 ` Laurent Pinchart
2015-03-20 11:15 ` Tomi Valkeinen
2 siblings, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2015-03-17 22:27 UTC (permalink / raw)
To: linux-fbdev
Hi Tomi,
Could you please pick this patch up for v4.1 ? I can send a pull request if it
makes your life easier.
On Sunday 15 March 2015 10:32:11 Geert Uytterhoeven wrote:
> On Sat, Mar 14, 2015 at 4:38 PM, Laurent Pinchart wrote:
> > 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 <dan.carpenter@oracle.com>
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing
2015-03-14 15:38 [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing Laurent Pinchart
2015-03-15 9:32 ` Geert Uytterhoeven
2015-03-17 22:27 ` Laurent Pinchart
@ 2015-03-20 11:15 ` Tomi Valkeinen
2 siblings, 0 replies; 4+ messages in thread
From: Tomi Valkeinen @ 2015-03-20 11:15 UTC (permalink / raw)
To: linux-fbdev
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
On 18/03/15 00:27, Laurent Pinchart wrote:
> Hi Tomi,
>
> Could you please pick this patch up for v4.1 ? I can send a pull request if it
> makes your life easier.
>
> On Sunday 15 March 2015 10:32:11 Geert Uytterhoeven wrote:
>> On Sat, Mar 14, 2015 at 4:38 PM, Laurent Pinchart wrote:
>>> 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 <dan.carpenter@oracle.com>
>>> Signed-off-by: Laurent Pinchart
>>> <laurent.pinchart+renesas@ideasonboard.com>
>>
>> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks, queued for 4.1.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-20 11:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-14 15:38 [PATCH] video: fbdev: sh_mobile_lcdcfb: Fix ROP3 sysfs attribute parsing Laurent Pinchart
2015-03-15 9:32 ` Geert Uytterhoeven
2015-03-17 22:27 ` Laurent Pinchart
2015-03-20 11:15 ` Tomi Valkeinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).