#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/backlight.h>
#include <linux/slab.h>
#include <linux/platform_data/omap1_bl.h>
#include <linux/soc/ti/omap1-io.h>
#include <linux/soc/ti/omap1-mux.h>
#define OMAPBL_MAX_INTENSITY …
struct omap_backlight { … };
static inline void omapbl_send_intensity(int intensity)
{ … }
static inline void omapbl_send_enable(int enable)
{ … }
static void omapbl_enable(struct omap_backlight *bl, bool enable)
{ … }
#ifdef CONFIG_PM_SLEEP
static int omapbl_suspend(struct device *dev)
{ … }
static int omapbl_resume(struct device *dev)
{ … }
#endif
static void omapbl_set_enabled(struct backlight_device *dev, bool enable)
{ … }
static int omapbl_update_status(struct backlight_device *dev)
{ … }
static int omapbl_get_intensity(struct backlight_device *dev)
{ … }
static const struct backlight_ops omapbl_ops = …;
static int omapbl_probe(struct platform_device *pdev)
{ … }
static SIMPLE_DEV_PM_OPS(omapbl_pm_ops, omapbl_suspend, omapbl_resume);
static struct platform_driver omapbl_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;