From f9f701b3351e13294d390345161bfc495907d63f Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Sat, 25 Mar 2006 03:07:33 -0800 Subject: [PATCH] --- yaml --- r: 23559 b: refs/heads/master c: 36a95bf5cd2c33280282da18eff0180a99cff201 h: refs/heads/master i: 23557: abd7b657a00f640b31ef585a89f21051e941893e 23555: f8533a140d3df4b8e0105c105187b42b62428569 23551: b06c5bab229e268a77341e9c392c10394ce5f177 v: v3 --- [refs] | 2 +- trunk/drivers/video/backlight/locomolcd.c | 23 ++++++++++------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/[refs] b/[refs] index 45827cc2cb90..e9fbea1486b4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bd34596239bfff615db7be7812d84c4ff6093f63 +refs/heads/master: 36a95bf5cd2c33280282da18eff0180a99cff201 diff --git a/trunk/drivers/video/backlight/locomolcd.c b/trunk/drivers/video/backlight/locomolcd.c index ada6e75eb048..60831bb23685 100644 --- a/trunk/drivers/video/backlight/locomolcd.c +++ b/trunk/drivers/video/backlight/locomolcd.c @@ -20,14 +20,10 @@ #include #include +#include +#include -#ifdef CONFIG_SA1100_COLLIE -#include -#else -#include -#endif - -extern void (*sa1100fb_lcd_power)(int on); +#include "../../../arch/arm/mach-sa1100/generic.h" static struct locomo_dev *locomolcd_dev; @@ -82,7 +78,7 @@ static void locomolcd_off(int comadj) void locomolcd_power(int on) { - int comadj = 118; + int comadj = sharpsl_param.comadj; unsigned long flags; local_irq_save(flags); @@ -93,11 +89,12 @@ void locomolcd_power(int on) } /* read comadj */ -#ifdef CONFIG_MACH_POODLE - comadj = 118; -#else - comadj = 128; -#endif + if (comadj == -1) { + if (machine_is_poodle()) + comadj = 118; + if (machine_is_collie()) + comadj = 128; + } if (on) locomolcd_on(comadj);