13 #include <linux/module.h>
14 #include <linux/kernel.h>
15 #include <linux/slab.h>
39 int *blank = fb_event->
data;
49 __led_set_brightness(led,
LED_OFF);
90 __led_set_brightness(led,
LED_OFF);
96 static DEVICE_ATTR(inverted, 0644, bl_trig_invert_show, bl_trig_invert_store);
105 led->trigger_data =
n;
107 dev_err(led->
dev,
"unable to allocate backlight trigger\n");
118 n->
notifier.notifier_call = fb_notifier_callback;
122 dev_err(led->
dev,
"unable to register backlight trigger\n");
123 led->activated =
true;
128 led->trigger_data =
NULL;
132 static void bl_trig_deactivate(
struct led_classdev *led)
137 if (led->activated) {
141 led->activated =
false;
145 static struct led_trigger bl_led_trigger = {
147 .activate = bl_trig_activate,
148 .deactivate = bl_trig_deactivate
151 static int __init bl_trig_init(
void)
156 static void __exit bl_trig_exit(
void)