diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-01-01 19:09:54 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-28 08:13:25 -0500 |
commit | ca4d6cfcee0cb2d25c0eb3b0172ecc6f223133ef (patch) | |
tree | 5bfcb4419f27b20782b76b81ae7f341bcd507e1b /arch/arm/mach-pxa/sharpsl.h | |
parent | 2e927b76267a57a44c018ffcc64cde5fedde1fcf (diff) |
[ARM] 4737/1: Refactor corgi_lcd to improve readability + bugfix
This patch refactors the code in corgi_lcd.c moving it to the board
specific corgi and spitz files where appropriate instead of the
existing ifdef mess which hinders readability.
Fix spitz_get_hsync_len() to call get_hsync_invperiod so pxafb can be
compiled as a module.
The confusing variables which represent the inverse horizintal sync
period are renamed to "invperiod" consistently.
An incorrect comment in corgi_ts.c is also corrected.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/sharpsl.h')
-rw-r--r-- | arch/arm/mach-pxa/sharpsl.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/arch/arm/mach-pxa/sharpsl.h b/arch/arm/mach-pxa/sharpsl.h index da4769caaf72..047909a76651 100644 --- a/arch/arm/mach-pxa/sharpsl.h +++ b/arch/arm/mach-pxa/sharpsl.h | |||
@@ -26,28 +26,15 @@ void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo); | |||
26 | 26 | ||
27 | 27 | ||
28 | /* | 28 | /* |
29 | * SharpSL Backlight | 29 | * SharpSL/Corgi LCD Driver |
30 | */ | 30 | */ |
31 | void corgi_bl_set_intensity(int intensity); | 31 | void corgi_lcdtg_suspend(void); |
32 | void spitz_bl_set_intensity(int intensity); | 32 | void corgi_lcdtg_hw_init(int mode); |
33 | void akita_bl_set_intensity(int intensity); | ||
34 | |||
35 | |||
36 | /* | ||
37 | * SharpSL Touchscreen Driver | ||
38 | */ | ||
39 | unsigned long corgi_get_hsync_len(void); | ||
40 | unsigned long spitz_get_hsync_len(void); | ||
41 | void corgi_put_hsync(void); | ||
42 | void spitz_put_hsync(void); | ||
43 | void corgi_wait_hsync(void); | ||
44 | void spitz_wait_hsync(void); | ||
45 | 33 | ||
46 | 34 | ||
47 | /* | 35 | /* |
48 | * SharpSL Battery/PM Driver | 36 | * SharpSL Battery/PM Driver |
49 | */ | 37 | */ |
50 | |||
51 | #define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x)) | 38 | #define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x)) |
52 | 39 | ||
53 | /* MAX1111 Channel Definitions */ | 40 | /* MAX1111 Channel Definitions */ |