Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23559
b: refs/heads/master
c: 36a95bf
h: refs/heads/master
i:
  23557: abd7b65
  23555: f8533a1
  23551: b06c5ba
v: v3
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Mar 25, 2006
1 parent d20d95e commit f9f701b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd34596239bfff615db7be7812d84c4ff6093f63
refs/heads/master: 36a95bf5cd2c33280282da18eff0180a99cff201
23 changes: 10 additions & 13 deletions trunk/drivers/video/backlight/locomolcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@

#include <asm/hardware/locomo.h>
#include <asm/irq.h>
#include <asm/mach/sharpsl_param.h>
#include <asm/mach-types.h>

#ifdef CONFIG_SA1100_COLLIE
#include <asm/arch/collie.h>
#else
#include <asm/arch/poodle.h>
#endif

extern void (*sa1100fb_lcd_power)(int on);
#include "../../../arch/arm/mach-sa1100/generic.h"

static struct locomo_dev *locomolcd_dev;

Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit f9f701b

Please sign in to comment.