mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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 <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
2e927b7626
commit
ca4d6cfcee
8 changed files with 292 additions and 328 deletions
|
|
@ -104,7 +104,6 @@
|
|||
*/
|
||||
extern struct platform_device corgiscoop_device;
|
||||
extern struct platform_device corgissp_device;
|
||||
extern struct platform_device corgifb_device;
|
||||
|
||||
#endif /* __ASM_ARCH_CORGI_H */
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ int corgi_ssp_max1111_get(unsigned long data);
|
|||
*/
|
||||
|
||||
struct corgits_machinfo {
|
||||
unsigned long (*get_hsync_len)(void);
|
||||
unsigned long (*get_hsync_invperiod)(void);
|
||||
void (*put_hsync)(void);
|
||||
void (*wait_hsync)(void);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -156,5 +156,3 @@ extern struct platform_device spitzscoop_device;
|
|||
extern struct platform_device spitzscoop2_device;
|
||||
extern struct platform_device spitzssp_device;
|
||||
extern struct sharpsl_charger_machinfo spitz_pm_machinfo;
|
||||
|
||||
extern void spitz_lcd_power(int on, struct fb_var_screeninfo *var);
|
||||
|
|
|
|||
Loading…
Reference in a new issue