21 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
23 #include <linux/module.h>
24 #include <linux/kernel.h>
29 #include <linux/slab.h>
32 #include <mach/hardware.h>
35 #define OMAPBL_MAX_INTENSITY 0xff
45 static void inline omapbl_send_intensity(
int intensity)
50 static void inline omapbl_send_enable(
int enable)
57 if (bl->
pdata->set_power)
65 omapbl_send_intensity(0);
66 omapbl_send_enable(0);
71 omapbl_send_enable(1);
95 #define omapbl_suspend NULL
96 #define omapbl_resume NULL
103 omapbl_blank(bl, state);
115 omapbl_send_intensity(dev->
props.brightness);
120 omapbl_set_power(dev, dev->
props.fb_blank);
132 .get_brightness = omapbl_get_intensity,
133 .update_status = omapbl_update_status,
165 platform_set_drvdata(pdev, dev);
171 omapbl_update_status(dev);
173 pr_info(
"OMAP LCD backlight initialised\n");
188 .probe = omapbl_probe,
189 .remove = omapbl_remove,