diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-03-31 12:31:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-31 22:19:00 +0200 |
commit | 2c0f5fb08e8ad59f396b1bda41ccd93cbb00a09f (patch) | |
tree | 9b53b4ffd3b118561d5210ca3962c592a428d7cd /include | |
parent | [PATCH] backlight: HP Jornada 680 Backlight driver updates/fixes (diff) | |
download | linux-2c0f5fb08e8ad59f396b1bda41ccd93cbb00a09f.tar.xz linux-2c0f5fb08e8ad59f396b1bda41ccd93cbb00a09f.zip |
[PATCH] backlight: corgi_bl: Generalise to support other Sharp SL hardware
Generalise the Corgi backlight driver by moving the default intensity and
limit mask settings into the platform specific data structure. This enables
the driver to support other Zaurus hardware, specifically the SL-6000x (Tosa)
model.
Also change the spinlock to a mutex (the spinlock is overkill).
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-pxa/sharpsl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/sharpsl.h b/include/asm-arm/arch-pxa/sharpsl.h index 0b43495d24b4..94cb4982af82 100644 --- a/include/asm-arm/arch-pxa/sharpsl.h +++ b/include/asm-arm/arch-pxa/sharpsl.h @@ -27,6 +27,8 @@ struct corgits_machinfo { */ struct corgibl_machinfo { int max_intensity; + int default_intensity; + int limit_mask; void (*set_bl_intensity)(int intensity); }; extern void corgibl_limit_intensity(int limit); |