diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-05 11:25:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-05 11:25:43 -0500 |
commit | 227c5fe7993a5430e582dfd4c3acd9484004c6fc (patch) | |
tree | 9724f1cbebaae71f86c8f2d168f34380355a6f0f /drivers/video/aty/atyfb_base.c | |
parent | 6ebf622b2577c50b1f496bd6a5e8739e55ae7b1c (diff) | |
parent | 202d4e602555e68c2bc71775228876b0356785c8 (diff) |
Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
backlight: Allow enable/disable of fb backlights, fixing regressions
backlight: Fix nvidia backlight initial brightness
Diffstat (limited to 'drivers/video/aty/atyfb_base.c')
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index b503ad874df7..d7627fc4f11e 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -309,6 +309,12 @@ static int xclk; | |||
309 | static int comp_sync __devinitdata = -1; | 309 | static int comp_sync __devinitdata = -1; |
310 | static char *mode; | 310 | static char *mode; |
311 | 311 | ||
312 | #ifdef CONFIG_PMAC_BACKLIGHT | ||
313 | static int backlight __devinitdata = 1; | ||
314 | #else | ||
315 | static int backlight __devinitdata = 0; | ||
316 | #endif | ||
317 | |||
312 | #ifdef CONFIG_PPC | 318 | #ifdef CONFIG_PPC |
313 | static int default_vmode __devinitdata = VMODE_CHOOSE; | 319 | static int default_vmode __devinitdata = VMODE_CHOOSE; |
314 | static int default_cmode __devinitdata = CMODE_CHOOSE; | 320 | static int default_cmode __devinitdata = CMODE_CHOOSE; |
@@ -2576,7 +2582,7 @@ static int __devinit aty_init(struct fb_info *info) | |||
2576 | | (USE_F32KHZ | TRISTATE_MEM_EN), par); | 2582 | | (USE_F32KHZ | TRISTATE_MEM_EN), par); |
2577 | } else | 2583 | } else |
2578 | #endif | 2584 | #endif |
2579 | if (M64_HAS(MOBIL_BUS)) { | 2585 | if (M64_HAS(MOBIL_BUS) && backlight) { |
2580 | #ifdef CONFIG_FB_ATY_BACKLIGHT | 2586 | #ifdef CONFIG_FB_ATY_BACKLIGHT |
2581 | aty_bl_init (par); | 2587 | aty_bl_init (par); |
2582 | #endif | 2588 | #endif |
@@ -3758,6 +3764,8 @@ static int __init atyfb_setup(char *options) | |||
3758 | xclk = simple_strtoul(this_opt+5, NULL, 0); | 3764 | xclk = simple_strtoul(this_opt+5, NULL, 0); |
3759 | else if (!strncmp(this_opt, "comp_sync:", 10)) | 3765 | else if (!strncmp(this_opt, "comp_sync:", 10)) |
3760 | comp_sync = simple_strtoul(this_opt+10, NULL, 0); | 3766 | comp_sync = simple_strtoul(this_opt+10, NULL, 0); |
3767 | else if (!strncmp(this_opt, "backlight:", 10)) | ||
3768 | backlight = simple_strtoul(this_opt+10, NULL, 0); | ||
3761 | #ifdef CONFIG_PPC | 3769 | #ifdef CONFIG_PPC |
3762 | else if (!strncmp(this_opt, "vmode:", 6)) { | 3770 | else if (!strncmp(this_opt, "vmode:", 6)) { |
3763 | unsigned int vmode = | 3771 | unsigned int vmode = |