#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/fb.h>
#include <linux/backlight.h>
#include <linux/lcd.h>
#include <linux/slab.h>
#include <video/platform_lcd.h>
struct platform_lcd { … };
static inline struct platform_lcd *to_our_lcd(struct lcd_device *lcd)
{ … }
static int platform_lcd_get_power(struct lcd_device *lcd)
{ … }
static int platform_lcd_set_power(struct lcd_device *lcd, int power)
{ … }
static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info)
{ … }
static const struct lcd_ops platform_lcd_ops = …;
static int platform_lcd_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int platform_lcd_suspend(struct device *dev)
{ … }
static int platform_lcd_resume(struct device *dev)
{ … }
#endif
static SIMPLE_DEV_PM_OPS(platform_lcd_pm_ops, platform_lcd_suspend,
platform_lcd_resume);
static struct platform_driver platform_lcd_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;