mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
2c0f5fb08e
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>
41 lines
848 B
C
41 lines
848 B
C
/*
|
|
* SharpSL SSP Driver
|
|
*/
|
|
|
|
unsigned long corgi_ssp_ads7846_putget(unsigned long);
|
|
unsigned long corgi_ssp_ads7846_get(void);
|
|
void corgi_ssp_ads7846_put(unsigned long data);
|
|
void corgi_ssp_ads7846_lock(void);
|
|
void corgi_ssp_ads7846_unlock(void);
|
|
void corgi_ssp_lcdtg_send (unsigned char adrs, unsigned char data);
|
|
void corgi_ssp_blduty_set(int duty);
|
|
int corgi_ssp_max1111_get(unsigned long data);
|
|
|
|
/*
|
|
* SharpSL Touchscreen Driver
|
|
*/
|
|
|
|
struct corgits_machinfo {
|
|
unsigned long (*get_hsync_len)(void);
|
|
void (*put_hsync)(void);
|
|
void (*wait_hsync)(void);
|
|
};
|
|
|
|
|
|
/*
|
|
* SharpSL Backlight
|
|
*/
|
|
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);
|
|
|
|
|
|
/*
|
|
* SharpSL Battery/PM Driver
|
|
*/
|
|
extern void sharpsl_battery_kick(void);
|