linux/drivers/video/backlight
Chen Zhou 7af43a7669 backlight: qcom-wled: Fix unsigned comparison to zero
Fixes coccicheck warning:
./drivers/video/backlight/qcom-wled.c:1104:5-15:
	WARNING: Unsigned expression compared with zero: string_len > 0

The unsigned variable string_len is assigned a return value from the call
to of_property_count_elems_of_size(), which may return negative error code.

Fixes: 775d2ffb4a ("backlight: qcom-wled: Restructure the driver for WLED3")
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2020-01-23 07:53:12 +00:00
..
88pm860x_bl.c
aat2870_bl.c
adp5520_bl.c
adp8860_bl.c
adp8870_bl.c
ams369fg06.c backlight: ams369fg06: Drop GPIO include 2019-12-16 10:30:41 +00:00
apple_bl.c
arcxcnn_bl.c
as3711_bl.c
backlight.c backlight: Expose brightness curve type through sysfs 2019-09-02 15:55:03 +01:00
bd6107.c backlight: bd6107: Convert to use GPIO descriptor 2019-12-16 10:32:27 +00:00
corgi_lcd.c
cr_bllcd.c
da903x_bl.c
da9052_bl.c
ep93xx_bl.c
generic_bl.c
gpio_backlight.c backlight: gpio: Pull gpio_backlight_initial_power_state() into probe 2019-11-11 11:34:01 +00:00
hp680_bl.c
hx8357.c
ili922x.c
ili9320.c
ili9320.h
ipaq_micro_bl.c backlight: ipaq_micro: Make structure micro_bl_props constant 2019-10-02 14:19:00 +01:00
jornada720_bl.c
jornada720_lcd.c
kb3886_bl.c
Kconfig backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c 2019-11-01 08:03:29 +00:00
l4f00242t03.c
lcd.c backlight: drop EARLY_EVENT_BLANK support 2019-08-05 21:52:53 +02:00
lm3533_bl.c
lm3630a_bl.c backlight: lm3630a: Add an enable gpio for the HWEN pin 2019-10-02 14:25:27 +01:00
lm3639_bl.c
lms283gf05.c backlight: lms283gf05: Fix a typo in the description passed to 'devm_gpio_request_one()' 2019-08-12 09:11:22 +01:00
lms501kf03.c
locomolcd.c
lp855x_bl.c
lp8788_bl.c
ltv350qv.c
ltv350qv.h
lv5207lp.c
Makefile backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c 2019-11-01 08:03:29 +00:00
max8925_bl.c
omap1_bl.c
ot200_bl.c
otm3225a.c
pandora_bl.c
pcf50633-backlight.c
platform_lcd.c
pwm_bl.c backlight: pwm_bl: Switch to power-of-2 base for fixed-point math 2019-10-14 08:57:45 +01:00
qcom-wled.c backlight: qcom-wled: Fix unsigned comparison to zero 2020-01-23 07:53:12 +00:00
rave-sp-backlight.c backlight: rave-sp: Leave initial state and register with correct device 2019-08-12 09:11:10 +01:00
sky81452-backlight.c
tdo24m.c
tosa_bl.c video: backlight: tosa: Use GPIO lookup table 2019-11-11 09:29:56 +00:00
tosa_bl.h video: backlight: tosa: Use GPIO lookup table 2019-11-11 09:29:56 +00:00
tosa_lcd.c video: backlight: tosa: Use GPIO lookup table 2019-11-11 09:29:56 +00:00
tps65217_bl.c
vgg2432a4.c
wm831x_bl.c