diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-11 16:59:04 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:40:49 -0400 |
commit | 43059b0f46f814b4152f327c701d079253904540 (patch) | |
tree | 79b38296fd3c47b0939c6fd3a3a06195f65585a9 /arch | |
parent | 018882aa66f5110478edc14e6c3fecc2b46ca0c0 (diff) |
fbdev: sh_mobile_lcdc: Move brightness ops to sh_mobile_lcdc_bl_info
Update board code accordingly.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 6 | ||||
-rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 6 |
3 files changed, 6 insertions, 10 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index d366e7873a34..123232329a88 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -391,13 +391,11 @@ static struct sh_mobile_lcdc_info lcdc_info = { | |||
391 | .flags = 0, | 391 | .flags = 0, |
392 | .lcd_size_cfg.width = 152, | 392 | .lcd_size_cfg.width = 152, |
393 | .lcd_size_cfg.height = 91, | 393 | .lcd_size_cfg.height = 91, |
394 | .board_cfg = { | ||
395 | .set_brightness = mackerel_set_brightness, | ||
396 | .get_brightness = mackerel_get_brightness, | ||
397 | }, | ||
398 | .bl_info = { | 394 | .bl_info = { |
399 | .name = "sh_mobile_lcdc_bl", | 395 | .name = "sh_mobile_lcdc_bl", |
400 | .max_brightness = 1, | 396 | .max_brightness = 1, |
397 | .set_brightness = mackerel_set_brightness, | ||
398 | .get_brightness = mackerel_get_brightness, | ||
401 | }, | 399 | }, |
402 | .meram_cfg = &lcd_meram_cfg, | 400 | .meram_cfg = &lcd_meram_cfg, |
403 | } | 401 | } |
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index edc1d1bbfa70..d0d2401c3cbc 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
@@ -220,12 +220,12 @@ static struct sh_mobile_lcdc_info lcdc_info = { | |||
220 | .board_cfg = { | 220 | .board_cfg = { |
221 | .display_on = ap320_wvga_power_on, | 221 | .display_on = ap320_wvga_power_on, |
222 | .display_off = ap320_wvga_power_off, | 222 | .display_off = ap320_wvga_power_off, |
223 | .set_brightness = ap320_wvga_set_brightness, | ||
224 | .get_brightness = ap320_wvga_get_brightness, | ||
225 | }, | 223 | }, |
226 | .bl_info = { | 224 | .bl_info = { |
227 | .name = "sh_mobile_lcdc_bl", | 225 | .name = "sh_mobile_lcdc_bl", |
228 | .max_brightness = 1, | 226 | .max_brightness = 1, |
227 | .set_brightness = ap320_wvga_set_brightness, | ||
228 | .get_brightness = ap320_wvga_get_brightness, | ||
229 | }, | 229 | }, |
230 | } | 230 | } |
231 | }; | 231 | }; |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 7ed3061e01da..769aab3fa379 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -331,13 +331,11 @@ static struct sh_mobile_lcdc_info lcdc_info = { | |||
331 | .width = 152, | 331 | .width = 152, |
332 | .height = 91, | 332 | .height = 91, |
333 | }, | 333 | }, |
334 | .board_cfg = { | ||
335 | .set_brightness = ecovec24_set_brightness, | ||
336 | .get_brightness = ecovec24_get_brightness, | ||
337 | }, | ||
338 | .bl_info = { | 334 | .bl_info = { |
339 | .name = "sh_mobile_lcdc_bl", | 335 | .name = "sh_mobile_lcdc_bl", |
340 | .max_brightness = 1, | 336 | .max_brightness = 1, |
337 | .set_brightness = ecovec24_set_brightness, | ||
338 | .get_brightness = ecovec24_get_brightness, | ||
341 | }, | 339 | }, |
342 | } | 340 | } |
343 | }; | 341 | }; |