alistair23-linux/drivers/video
Arnd Bergmann 86c68e2fb3 backlight: adp88x0: Fix uninitialized variable use
gcc correctly warns about both the adp8860 and adp8870 backlight
drivers using an uninitialized variable in their error handling
path:

drivers/video/backlight/adp8870_bl.c: In function 'adp8870_bl_ambient_light_zone_store':
drivers/video/backlight/adp8870_bl.c:811:11: warning: 'reg_val' may be used uninitialized in this function

This changes the code to only write back the data if it was
correctly read to start with.

As a side-note, the drivers are mostly identical, so I think they
should really be merged into one file to avoid having to fix every
bug twice.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2016-01-11 05:56:12 +00:00
..
backlight backlight: adp88x0: Fix uninitialized variable use 2016-01-11 05:56:12 +00:00
console fbcon: initialize blink interval before calling fb_set_par 2015-10-17 22:00:39 -07:00
fbdev fbdev changes for 4.4 2015-11-10 10:00:09 -08:00
logo
display_timing.c
hdmi.c
Kconfig
Makefile
of_display_timing.c video: of: fix memory leak 2015-10-07 14:13:59 +03:00
of_videomode.c video: Fix possible leak in of_get_videomode() 2015-08-10 15:11:12 +03:00
vgastate.c
videomode.c