[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>
This commit is contained in:

committed by
Russell King

parent
2e927b7626
commit
ca4d6cfcee
@@ -26,28 +26,15 @@ void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo);
|
||||
|
||||
|
||||
/*
|
||||
* SharpSL Backlight
|
||||
* SharpSL/Corgi LCD Driver
|
||||
*/
|
||||
void corgi_bl_set_intensity(int intensity);
|
||||
void spitz_bl_set_intensity(int intensity);
|
||||
void akita_bl_set_intensity(int intensity);
|
||||
|
||||
|
||||
/*
|
||||
* SharpSL Touchscreen Driver
|
||||
*/
|
||||
unsigned long corgi_get_hsync_len(void);
|
||||
unsigned long spitz_get_hsync_len(void);
|
||||
void corgi_put_hsync(void);
|
||||
void spitz_put_hsync(void);
|
||||
void corgi_wait_hsync(void);
|
||||
void spitz_wait_hsync(void);
|
||||
void corgi_lcdtg_suspend(void);
|
||||
void corgi_lcdtg_hw_init(int mode);
|
||||
|
||||
|
||||
/*
|
||||
* SharpSL Battery/PM Driver
|
||||
*/
|
||||
|
||||
#define READ_GPIO_BIT(x) (GPLR(x) & GPIO_bit(x))
|
||||
|
||||
/* MAX1111 Channel Definitions */
|
||||
|
Reference in New Issue
Block a user