aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/backlight
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2013-04-29 19:18:03 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 21:28:18 -0400
commit0b8185733966c1863b6b90ca2697327118ce5032 (patch)
tree746742b89c6eb0b9f20058139afc2ec93c3bd122 /Documentation/backlight
parent600ffd33d09e3803d81607d3404a8cad709160e4 (diff)
backlight: lp855x: move backlight mode platform data
The brightness of LP855x devices is controlled by I2C register or PWM input . This mode was selected through the platform data, but it can be chosen by the driver internally without platform data configuration. How to decide the control mode: If the PWM period has specific value, the mode is PWM input. On the other hand, the mode is register-based. This mode selection is done on the _probe(). Move 'mode' from a header file to the driver private data structure, 'lp855 x'. And correlated code was replaced. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/backlight')
-rw-r--r--Documentation/backlight/lp855x-driver.txt3
1 files changed, 0 insertions, 3 deletions
diff --git a/Documentation/backlight/lp855x-driver.txt b/Documentation/backlight/lp855x-driver.txt
index 18b06ca038ea..72e2a673f774 100644
--- a/Documentation/backlight/lp855x-driver.txt
+++ b/Documentation/backlight/lp855x-driver.txt
@@ -32,7 +32,6 @@ Platform data for lp855x
32For supporting platform specific data, the lp855x platform data can be used. 32For supporting platform specific data, the lp855x platform data can be used.
33 33
34* name : Backlight driver name. If it is not defined, default name is set. 34* name : Backlight driver name. If it is not defined, default name is set.
35* mode : Brightness control mode. PWM or register based.
36* device_control : Value of DEVICE CONTROL register. 35* device_control : Value of DEVICE CONTROL register.
37* initial_brightness : Initial value of backlight brightness. 36* initial_brightness : Initial value of backlight brightness.
38* period_ns : Platform specific PWM period value. unit is nano. 37* period_ns : Platform specific PWM period value. unit is nano.
@@ -54,7 +53,6 @@ static struct lp855x_rom_data lp8552_eeprom_arr[] = {
54 53
55static struct lp855x_platform_data lp8552_pdata = { 54static struct lp855x_platform_data lp8552_pdata = {
56 .name = "lcd-bl", 55 .name = "lcd-bl",
57 .mode = REGISTER_BASED,
58 .device_control = I2C_CONFIG(LP8552), 56 .device_control = I2C_CONFIG(LP8552),
59 .initial_brightness = INITIAL_BRT, 57 .initial_brightness = INITIAL_BRT,
60 .load_new_rom_data = 1, 58 .load_new_rom_data = 1,
@@ -65,7 +63,6 @@ static struct lp855x_platform_data lp8552_pdata = {
65example 2) lp8556 platform data : pwm input mode with default rom data 63example 2) lp8556 platform data : pwm input mode with default rom data
66 64
67static struct lp855x_platform_data lp8556_pdata = { 65static struct lp855x_platform_data lp8556_pdata = {
68 .mode = PWM_BASED,
69 .device_control = PWM_CONFIG(LP8556), 66 .device_control = PWM_CONFIG(LP8556),
70 .initial_brightness = INITIAL_BRT, 67 .initial_brightness = INITIAL_BRT,
71 .period_ns = 1000000, 68 .period_ns = 1000000,