linux/drivers/video/backlight
Michael Hennerich c7ce2500e3 drivers/video/backlight/adp8860_bl.c: fix ambient light zone overwrite handling
This affects the get/set of the current Ambient Light Zone.  Reading
should return an integer between 1..3 (1 = Daylight, 2 = office, 3 =
dark).  Writing a value between 1..3 forces the backlight controller to
enter the corresponding Ambient Light Zone.  Writing 0 returns to normal
operation.

Fix valid range checking so we don't write invalid values to the
controller, and make sure we subtract 1, since this is what the register
definition (CFGR:BLV) requires.  Otherwise the values written don't work
correctly.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-12 07:55:33 -08:00
..
88pm860x_bl.c backlight: 88pm860x_bl: fix error handling in pm860x_backlight_probe 2010-05-26 17:34:37 +01:00
adp5520_bl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
adp8860_bl.c drivers/video/backlight/adp8860_bl.c: fix ambient light zone overwrite handling 2010-11-12 07:55:33 -08:00
adx_bl.c backlight: backlight_device_register() return ERR_PTR() 2010-05-26 13:08:31 +01:00
atmel-pwm-bl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
backlight.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
corgi_lcd.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
cr_bllcd.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
da903x_bl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ep93xx_bl.c backlight: Add Cirrus EP93xx backlight driver 2010-05-26 13:08:32 +01:00
generic_bl.c backlight: Allow properties to be passed at registration 2010-03-16 19:47:54 +00:00
hp680_bl.c backlight: Allow properties to be passed at registration 2010-03-16 19:47:54 +00:00
ili9320.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ili9320.h fb: add support for the ILI9320 video display controller 2008-07-24 10:47:40 -07:00
jornada720_bl.c backlight: Allow properties to be passed at registration 2010-03-16 19:47:54 +00:00
jornada720_lcd.c backlight: Add HP Jornada 700 series LCD driver 2009-04-06 16:06:55 +01:00
kb3886_bl.c backlight: Allow properties to be passed at registration 2010-03-16 19:47:54 +00:00
Kconfig backlight: Add pcf50633 backlight driver 2010-05-26 17:34:38 +01:00
l4f00242t03.c backlight: fix blanking for L4F00242T03 LCD 2010-11-12 07:55:33 -08:00
lcd.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
lms283gf05.c backlight: fix blanking for LMS283GF05 LCD 2010-11-12 07:55:33 -08:00
locomolcd.c update email address 2010-07-19 10:56:54 +02:00
ltv350qv.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ltv350qv.h
Makefile backlight: Add pcf50633 backlight driver 2010-05-26 17:34:38 +01:00
max8925_bl.c backlight: max8925_bl: Fix error handling path 2010-05-26 17:34:36 +01:00
mbp_nvidia_bl.c backlight: mbp_nvidia_bl - Fix DMI_SYS_VENDOR for MacBook1,1 2010-05-26 13:08:32 +01:00
omap1_bl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pcf50633-backlight.c backlight: Add pcf50633 backlight driver 2010-05-26 17:34:38 +01:00
platform_lcd.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
progear_bl.c backlight: Allow properties to be passed at registration 2010-03-16 19:47:54 +00:00
pwm_bl.c backlight: add low threshold to pwm backlight 2010-11-12 07:55:33 -08:00
s6e63m0_gamma.h backlight: add S6E63M0 AMOLED LCD Panel driver 2010-05-26 17:34:16 +01:00
s6e63m0.c drivers/video/backlight/s6e63m0.c: fix section mismatch 2010-11-12 07:55:33 -08:00
tdo24m.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
tosa_bl.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
tosa_lcd.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
vgg2432a4.c spi: prefix modalias with "spi:" 2009-09-23 07:39:43 -07:00
wm831x_bl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00