Re: [PATCH 7/8] backlight: lm3630a_bl: Remove invalid checks for unsigned int < 0

2020-06-25 Thread Daniel Thompson
On Wed, Jun 24, 2020 at 03:57:20PM +0100, Lee Jones wrote: > unsigned ints 'sources' and 'bank' cannot be less than LM3630A_SINK_0 (0) > and LM3630A_BANK_0 (0) respecitively, so change the logic to only check > for thier two possible valid values. > > Fixes W=1 warnings: > > drivers/video/backli

[PATCH 7/8] backlight: lm3630a_bl: Remove invalid checks for unsigned int < 0

2020-06-24 Thread Lee Jones
unsigned ints 'sources' and 'bank' cannot be less than LM3630A_SINK_0 (0) and LM3630A_BANK_0 (0) respecitively, so change the logic to only check for thier two possible valid values. Fixes W=1 warnings: drivers/video/backlight/lm3630a_bl.c: In function ‘lm3630a_parse_led_sources’: drivers/video