diff options
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-h1940.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-rx1950.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-hmt.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5p64x0/mach-smdk6440.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5p64x0/mach-smdk6450.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/mach-smdkc100.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-samsung/dev-backlight.c | 5 |
11 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-h1940.c b/arch/arm/mach-s3c24xx/mach-h1940.c index 74dd47988b41..952b6a040d1f 100644 --- a/arch/arm/mach-s3c24xx/mach-h1940.c +++ b/arch/arm/mach-s3c24xx/mach-h1940.c | |||
@@ -504,6 +504,7 @@ static struct platform_pwm_backlight_data backlight_data = { | |||
504 | .dft_brightness = 50, | 504 | .dft_brightness = 50, |
505 | /* tcnt = 0x31 */ | 505 | /* tcnt = 0x31 */ |
506 | .pwm_period_ns = 36296, | 506 | .pwm_period_ns = 36296, |
507 | .enable_gpio = -1, | ||
507 | .init = h1940_backlight_init, | 508 | .init = h1940_backlight_init, |
508 | .notify = h1940_backlight_notify, | 509 | .notify = h1940_backlight_notify, |
509 | .exit = h1940_backlight_exit, | 510 | .exit = h1940_backlight_exit, |
diff --git a/arch/arm/mach-s3c24xx/mach-rx1950.c b/arch/arm/mach-s3c24xx/mach-rx1950.c index 206b1f7546d1..034b7fe45c49 100644 --- a/arch/arm/mach-s3c24xx/mach-rx1950.c +++ b/arch/arm/mach-s3c24xx/mach-rx1950.c | |||
@@ -522,6 +522,7 @@ static struct platform_pwm_backlight_data rx1950_backlight_data = { | |||
522 | .max_brightness = 24, | 522 | .max_brightness = 24, |
523 | .dft_brightness = 4, | 523 | .dft_brightness = 4, |
524 | .pwm_period_ns = 48000, | 524 | .pwm_period_ns = 48000, |
525 | .enable_gpio = -1, | ||
525 | .init = rx1950_backlight_init, | 526 | .init = rx1950_backlight_init, |
526 | .notify = rx1950_backlight_notify, | 527 | .notify = rx1950_backlight_notify, |
527 | .exit = rx1950_backlight_exit, | 528 | .exit = rx1950_backlight_exit, |
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index eb8e5a1aca42..51d0fcd161d5 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -114,6 +114,7 @@ static struct platform_pwm_backlight_data crag6410_backlight_data = { | |||
114 | .max_brightness = 1000, | 114 | .max_brightness = 1000, |
115 | .dft_brightness = 600, | 115 | .dft_brightness = 600, |
116 | .pwm_period_ns = 100000, /* about 1kHz */ | 116 | .pwm_period_ns = 100000, /* about 1kHz */ |
117 | .enable_gpio = -1, | ||
117 | }; | 118 | }; |
118 | 119 | ||
119 | static struct platform_device crag6410_backlight_device = { | 120 | static struct platform_device crag6410_backlight_device = { |
diff --git a/arch/arm/mach-s3c64xx/mach-hmt.c b/arch/arm/mach-s3c64xx/mach-hmt.c index f39569e0f2e6..7ce417da3103 100644 --- a/arch/arm/mach-s3c64xx/mach-hmt.c +++ b/arch/arm/mach-s3c64xx/mach-hmt.c | |||
@@ -114,6 +114,7 @@ static struct platform_pwm_backlight_data hmt_backlight_data = { | |||
114 | .max_brightness = 100 * 256, | 114 | .max_brightness = 100 * 256, |
115 | .dft_brightness = 40 * 256, | 115 | .dft_brightness = 40 * 256, |
116 | .pwm_period_ns = 1000000000 / (100 * 256 * 20), | 116 | .pwm_period_ns = 1000000000 / (100 * 256 * 20), |
117 | .enable_gpio = -1, | ||
117 | .init = hmt_bl_init, | 118 | .init = hmt_bl_init, |
118 | .notify = hmt_bl_notify, | 119 | .notify = hmt_bl_notify, |
119 | .exit = hmt_bl_exit, | 120 | .exit = hmt_bl_exit, |
diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c index 86d980b448fd..f3699a92d438 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq.c +++ b/arch/arm/mach-s3c64xx/mach-smartq.c | |||
@@ -151,6 +151,7 @@ static struct platform_pwm_backlight_data smartq_backlight_data = { | |||
151 | .max_brightness = 1000, | 151 | .max_brightness = 1000, |
152 | .dft_brightness = 600, | 152 | .dft_brightness = 600, |
153 | .pwm_period_ns = 1000000000 / (1000 * 20), | 153 | .pwm_period_ns = 1000000000 / (1000 * 20), |
154 | .enable_gpio = -1, | ||
154 | .init = smartq_bl_init, | 155 | .init = smartq_bl_init, |
155 | }; | 156 | }; |
156 | 157 | ||
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index d90b450c5645..0bf5b331ba5c 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -625,6 +625,7 @@ static struct samsung_bl_gpio_info smdk6410_bl_gpio_info = { | |||
625 | 625 | ||
626 | static struct platform_pwm_backlight_data smdk6410_bl_data = { | 626 | static struct platform_pwm_backlight_data smdk6410_bl_data = { |
627 | .pwm_id = 1, | 627 | .pwm_id = 1, |
628 | .enable_gpio = -1, | ||
628 | }; | 629 | }; |
629 | 630 | ||
630 | static struct s3c_hsotg_plat smdk6410_hsotg_pdata; | 631 | static struct s3c_hsotg_plat smdk6410_hsotg_pdata; |
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6440.c b/arch/arm/mach-s5p64x0/mach-smdk6440.c index 0b00304c1e91..9efdcc03df3b 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6440.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6440.c | |||
@@ -223,6 +223,7 @@ static struct samsung_bl_gpio_info smdk6440_bl_gpio_info = { | |||
223 | 223 | ||
224 | static struct platform_pwm_backlight_data smdk6440_bl_data = { | 224 | static struct platform_pwm_backlight_data smdk6440_bl_data = { |
225 | .pwm_id = 1, | 225 | .pwm_id = 1, |
226 | .enable_gpio = -1, | ||
226 | }; | 227 | }; |
227 | 228 | ||
228 | static void __init smdk6440_map_io(void) | 229 | static void __init smdk6440_map_io(void) |
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6450.c b/arch/arm/mach-s5p64x0/mach-smdk6450.c index 5949296e88fd..c3cacc067efe 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6450.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6450.c | |||
@@ -242,6 +242,7 @@ static struct samsung_bl_gpio_info smdk6450_bl_gpio_info = { | |||
242 | 242 | ||
243 | static struct platform_pwm_backlight_data smdk6450_bl_data = { | 243 | static struct platform_pwm_backlight_data smdk6450_bl_data = { |
244 | .pwm_id = 1, | 244 | .pwm_id = 1, |
245 | .enable_gpio = -1, | ||
245 | }; | 246 | }; |
246 | 247 | ||
247 | static void __init smdk6450_map_io(void) | 248 | static void __init smdk6450_map_io(void) |
diff --git a/arch/arm/mach-s5pc100/mach-smdkc100.c b/arch/arm/mach-s5pc100/mach-smdkc100.c index 7c57a221785e..9e256b9fc930 100644 --- a/arch/arm/mach-s5pc100/mach-smdkc100.c +++ b/arch/arm/mach-s5pc100/mach-smdkc100.c | |||
@@ -216,6 +216,7 @@ static struct samsung_bl_gpio_info smdkc100_bl_gpio_info = { | |||
216 | 216 | ||
217 | static struct platform_pwm_backlight_data smdkc100_bl_data = { | 217 | static struct platform_pwm_backlight_data smdkc100_bl_data = { |
218 | .pwm_id = 0, | 218 | .pwm_id = 0, |
219 | .enable_gpio = -1, | ||
219 | }; | 220 | }; |
220 | 221 | ||
221 | static void __init smdkc100_map_io(void) | 222 | static void __init smdkc100_map_io(void) |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 6d72bb992e38..f52cc15c2d85 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -279,6 +279,7 @@ static struct samsung_bl_gpio_info smdkv210_bl_gpio_info = { | |||
279 | static struct platform_pwm_backlight_data smdkv210_bl_data = { | 279 | static struct platform_pwm_backlight_data smdkv210_bl_data = { |
280 | .pwm_id = 3, | 280 | .pwm_id = 3, |
281 | .pwm_period_ns = 1000, | 281 | .pwm_period_ns = 1000, |
282 | .enable_gpio = -1, | ||
282 | }; | 283 | }; |
283 | 284 | ||
284 | static void __init smdkv210_map_io(void) | 285 | static void __init smdkv210_map_io(void) |
diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/plat-samsung/dev-backlight.c index d51f9565567c..be4ad0b21c08 100644 --- a/arch/arm/plat-samsung/dev-backlight.c +++ b/arch/arm/plat-samsung/dev-backlight.c | |||
@@ -70,6 +70,7 @@ static struct samsung_bl_drvdata samsung_dfl_bl_data __initdata = { | |||
70 | .max_brightness = 255, | 70 | .max_brightness = 255, |
71 | .dft_brightness = 255, | 71 | .dft_brightness = 255, |
72 | .pwm_period_ns = 78770, | 72 | .pwm_period_ns = 78770, |
73 | .enable_gpio = -1, | ||
73 | .init = samsung_bl_init, | 74 | .init = samsung_bl_init, |
74 | .exit = samsung_bl_exit, | 75 | .exit = samsung_bl_exit, |
75 | }, | 76 | }, |
@@ -121,6 +122,10 @@ void __init samsung_bl_set(struct samsung_bl_gpio_info *gpio_info, | |||
121 | samsung_bl_data->lth_brightness = bl_data->lth_brightness; | 122 | samsung_bl_data->lth_brightness = bl_data->lth_brightness; |
122 | if (bl_data->pwm_period_ns) | 123 | if (bl_data->pwm_period_ns) |
123 | samsung_bl_data->pwm_period_ns = bl_data->pwm_period_ns; | 124 | samsung_bl_data->pwm_period_ns = bl_data->pwm_period_ns; |
125 | if (bl_data->enable_gpio >= 0) | ||
126 | samsung_bl_data->enable_gpio = bl_data->enable_gpio; | ||
127 | if (bl_data->enable_gpio_flags) | ||
128 | samsung_bl_data->enable_gpio_flags = bl_data->enable_gpio_flags; | ||
124 | if (bl_data->init) | 129 | if (bl_data->init) |
125 | samsung_bl_data->init = bl_data->init; | 130 | samsung_bl_data->init = bl_data->init; |
126 | if (bl_data->notify) | 131 | if (bl_data->notify) |