2020-03-13 17:21:44

by Colin King

[permalink] [raw]
Subject: [PATCH] leds: lm3532: make bitfield 'enabled' unsigned

From: Colin Ian King <[email protected]>

The bitfield 'enabled' should bit unsigned, so make it unsigned.

Signed-off-by: Colin Ian King <[email protected]>
---
drivers/leds/leds-lm3532.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/leds-lm3532.c b/drivers/leds/leds-lm3532.c
index 188a57da981a..aa9bf8cda673 100644
--- a/drivers/leds/leds-lm3532.c
+++ b/drivers/leds/leds-lm3532.c
@@ -140,7 +140,7 @@ struct lm3532_led {
int ctrl_brt_pointer;
int num_leds;
int full_scale_current;
- int enabled:1;
+ unsigned int enabled:1;
u32 led_strings[LM3532_MAX_CONTROL_BANKS];
char label[LED_MAX_NAME_SIZE];
};
--
2.25.1


2020-03-21 15:46:51

by Pavel Machek

[permalink] [raw]
Subject: Re: [PATCH] leds: lm3532: make bitfield 'enabled' unsigned

On Fri 2020-03-13 17:19:37, Colin King wrote:
> From: Colin Ian King <[email protected]>
>
> The bitfield 'enabled' should bit unsigned, so make it unsigned.
>
> Signed-off-by: Colin Ian King <[email protected]>

Thanks, applied.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


Attachments:
(No filename) (409.00 B)
signature.asc (201.00 B)
Download all attachments