mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-06 01:26:56 +01:00
Platform LCD devices may need to do some device-specific initialization before they can be used (regulator or GPIO setup, for example), but currently the driver does not support any way of doing this. This patch adds a probe() callback to plat_lcd_data which platform LCD devices can set to indicate that device-specific initialization is needed. Signed-off-by: Andrew Bresticker <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Florian Tobias Schandinat <[email protected]> Reviewed-by: Doug Anderson <[email protected]> Acked-by: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
23 lines
589 B
C
23 lines
589 B
C
/* include/video/platform_lcd.h
|
|
*
|
|
* Copyright 2008 Simtec Electronics
|
|
* Ben Dooks <[email protected]>
|
|
*
|
|
* Generic platform-device LCD power control interface.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
struct plat_lcd_data;
|
|
struct fb_info;
|
|
|
|
struct plat_lcd_data {
|
|
int (*probe)(struct plat_lcd_data *);
|
|
void (*set_power)(struct plat_lcd_data *, unsigned int power);
|
|
int (*match_fb)(struct plat_lcd_data *, struct fb_info *);
|
|
};
|
|
|