* [PATCH] backlight: make 1-bit signed filed unsigned in l4f00242t03.c
@ 2010-11-20 12:01 Mariusz Kozlowski
2010-11-22 10:06 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Mariusz Kozlowski @ 2010-11-20 12:01 UTC (permalink / raw)
To: Richard Purdie; +Cc: linux-kernel, Mariusz Kozlowski
Fixes sparse warning:
drivers/video/backlight/l4f00242t03.c:28:21: error: dubious one-bit
signed bitfield
Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
---
drivers/video/backlight/l4f00242t03.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c
index c67801e..6d9ba0e 100644
--- a/drivers/video/backlight/l4f00242t03.c
+++ b/drivers/video/backlight/l4f00242t03.c
@@ -25,7 +25,7 @@
struct l4f00242t03_priv {
struct spi_device *spi;
struct lcd_device *ld;
- int lcd_on:1;
+ unsigned int lcd_on:1;
struct regulator *io_reg;
struct regulator *core_reg;
};
--
1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] backlight: make 1-bit signed filed unsigned in l4f00242t03.c
2010-11-20 12:01 [PATCH] backlight: make 1-bit signed filed unsigned in l4f00242t03.c Mariusz Kozlowski
@ 2010-11-22 10:06 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2010-11-22 10:06 UTC (permalink / raw)
To: Mariusz Kozlowski, akpm; +Cc: linux-kernel
On Sat, 2010-11-20 at 13:01 +0100, Mariusz Kozlowski wrote:
> Fixes sparse warning:
> drivers/video/backlight/l4f00242t03.c:28:21: error: dubious one-bit
> signed bitfield
>
> Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
Acked-by: Richard Purdie <rpurdie@linux.intel.com>
> ---
> drivers/video/backlight/l4f00242t03.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c
> index c67801e..6d9ba0e 100644
> --- a/drivers/video/backlight/l4f00242t03.c
> +++ b/drivers/video/backlight/l4f00242t03.c
> @@ -25,7 +25,7 @@
> struct l4f00242t03_priv {
> struct spi_device *spi;
> struct lcd_device *ld;
> - int lcd_on:1;
> + unsigned int lcd_on:1;
> struct regulator *io_reg;
> struct regulator *core_reg;
> };
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-22 10:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-20 12:01 [PATCH] backlight: make 1-bit signed filed unsigned in l4f00242t03.c Mariusz Kozlowski
2010-11-22 10:06 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®