lcd: add platform_lcd driver
Add a platform_lcd driver to allow boards with simple lcd power controls to register themselves easily. [akpm@linux-foundation.org: build fix] Signed-off-by: Ben Dooks <ben-linux@fluff.org> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
0c531360ed
commit
c25826a7cf
21
include/video/platform_lcd.h
Normal file
21
include/video/platform_lcd.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/* include/video/platform_lcd.h
|
||||
*
|
||||
* Copyright 2008 Simtec Electronics
|
||||
* Ben Dooks <ben@simtec.co.uk>
|
||||
*
|
||||
* 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 {
|
||||
void (*set_power)(struct plat_lcd_data *, unsigned int power);
|
||||
int (*match_fb)(struct plat_lcd_data *, struct fb_info *);
|
||||
};
|
||||
|
Reference in New Issue
Block a user