dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/video/backlight
Kim, Milo 8cc9764c9c drivers/video/backlight/lp855x_bl.c: use generic PWM functions
The LP855x family devices support the PWM input for the backlight control.
 Period of the PWM is configurable in the platform side.  Platform
specific functions are unnecessary anymore because generic PWM functions
are used inside the driver.

(PWM input mode)
To set the brightness, new lp855x_pwm_ctrl() is used.
If a PWM device is not allocated, devm_pwm_get() is called.
The PWM consumer name is from the chip name such as 'lp8550' and 'lp8556'.
To get the brightness value, no additional handling is required.
Just the value of 'props.brightness' is returned.

If the PWM driver is not ready while initializing the LP855x driver, it's
OK.  The PWM device can be retrieved later, when the brightness value is
changed.

Documentation is updated with an example.

[akpm@linux-foundation.org: coding-style simplification, per Thierry]
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-12-17 17:15:16 -08:00
..
88pm860x_bl.c backlight: 88pm860x_bl: fix checkpatch warning 2012-12-17 17:15:14 -08:00
Kconfig backlight: ili9320: add missing SPI dependency 2012-10-25 14:37:52 -07:00
Makefile Merge branch 'akpm' (Andrew's patch-bomb) 2012-10-06 03:09:16 +09:00
aat2870_bl.c drivers/video/backlight: use devm_ functions 2012-03-23 16:58:33 -07:00
adp5520_bl.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
adp8860_bl.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
adp8870_bl.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
ams369fg06.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
apple_bl.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
atmel-pwm-bl.c backlight: atmel-pwm-bl: fix checkpatch warning 2012-12-17 17:15:14 -08:00
backlight.c backlight: use pr_warn() and pr_debug() instead of printk() 2012-05-29 16:22:29 -07:00
corgi_lcd.c backlight: corgi_lcd: fix checkpatch error and warning 2012-12-17 17:15:14 -08:00
cr_bllcd.c backlight: cr_bllcd: use pr_err()/pr_info() instead of printk() 2012-05-29 16:22:29 -07:00
da903x_bl.c backlight: da903x_bl: fix checkpatch warning 2012-12-17 17:15:14 -08:00
da9052_bl.c drivers/video/backlight/da9052_bl.c: drop devm_kfree of devm_kzalloc'd data 2012-10-06 03:04:54 +09:00
ep93xx_bl.c backlight: remove use of __devexit_p 2012-11-28 12:03:45 -08:00
generic_bl.c backlight: generic_bl: fix checkpatch warning 2012-12-17 17:15:14 -08:00
hp680_bl.c backlight: hp680_bl: fix checkpatch error and warning 2012-12-17 17:15:14 -08:00
ili9320.c backlight: ili9320: fix checkpatch error and warning 2012-12-17 17:15:14 -08:00
ili9320.h fb: add support for the ILI9320 video display controller 2008-07-24 10:47:40 -07:00
jornada720_bl.c backlight: jornada720: fix checkpatch error and warning 2012-12-17 17:15:15 -08:00
jornada720_lcd.c backlight: jornada720: use pr_err()/pr_info() instead of printk() 2012-05-29 16:22:29 -07:00
kb3886_bl.c drivers/video/backlight/kb3886_bl.c: use usleep_range() instead of msleep() for small sleeps 2012-10-06 03:04:52 +09:00
l4f00242t03.c backlight: l4f00242t03: fix checkpatch warning 2012-12-17 17:15:15 -08:00
lcd.c backlight: use pr_warn() and pr_debug() instead of printk() 2012-05-29 16:22:29 -07:00
ld9040.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
ld9040_gamma.h drivers/vidfeo/backlight: ld9040 amoled driver support 2011-03-22 17:43:59 -07:00
lm3533_bl.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
lm3630_bl.c backlight: lm3630: fix checkpatch warning 2012-12-17 17:15:15 -08:00
lm3639_bl.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
lms283gf05.c backlight: lms283gf05: use devm_gpio_request_one 2012-12-17 17:15:15 -08:00
locomolcd.c ARM: fix lcd power build failure in collie_defconfig 2012-04-02 22:03:44 -07:00
lp855x_bl.c drivers/video/backlight/lp855x_bl.c: use generic PWM functions 2012-12-17 17:15:16 -08:00
ltv350qv.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
ltv350qv.h backlight: Add Samsung LTV350QV LCD driver 2007-10-11 22:24:12 +01:00
max8925_bl.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
omap1_bl.c backlight: omap1: fix checkpatch warning 2012-12-17 17:15:15 -08:00
ot200_bl.c backlight: ot200_bl: use devm_gpio_request() 2012-07-30 17:25:15 -07:00
pandora_bl.c backlight: add support for Pandora backlight 2012-03-23 16:58:33 -07:00
pcf50633-backlight.c backlight: pcf50633: fix checkpatch warning 2012-12-17 17:15:15 -08:00
platform_lcd.c backlight: platform_lcd: fix checkpatch error 2012-12-17 17:15:15 -08:00
pwm_bl.c pwm-backlight: Use devm_pwm_get() instead of pwm_get() 2012-10-05 20:56:39 +02:00
s6e63m0.c backlight: remove use of __devexit 2012-11-28 12:06:39 -08:00
s6e63m0_gamma.h backlight: add S6E63M0 AMOLED LCD Panel driver 2010-05-26 17:34:16 +01:00
tdo24m.c backlight: tdo24m: fix checkpatch warning 2012-12-17 17:15:15 -08:00
tosa_bl.c backlight: tosa: use devm_gpio_request_one 2012-12-17 17:15:15 -08:00
tosa_lcd.c backlight: tosa: use devm_gpio_request_one 2012-12-17 17:15:15 -08:00
tps65217_bl.c backlight: tps65217_bl: Add missing platform_set_drvdata in tps65217_bl_probe 2012-10-01 00:56:12 +02:00
vgg2432a4.c backlight: vgg2432a4: fix checkpatch warning 2012-12-17 17:15:15 -08:00
wm831x_bl.c backlight: initialize struct backlight_properties properly 2012-05-29 16:22:30 -07:00