14 #include <linux/module.h>
15 #include <linux/kernel.h>
17 #include <linux/device.h>
18 #include <linux/ctype.h>
37 ret = kstrtoul(buf, 10, &state);
62 ret = kstrtoul(buf, 10, &state);
72 static DEVICE_ATTR(delay_on, 0644, led_delay_on_show, led_delay_on_store);
73 static DEVICE_ATTR(delay_off, 0644, led_delay_off_show, led_delay_off_store);
75 static void timer_trig_activate(
struct led_classdev *led_cdev)
79 led_cdev->trigger_data =
NULL;
90 led_cdev->activated =
true;
98 static void timer_trig_deactivate(
struct led_classdev *led_cdev)
100 if (led_cdev->activated) {
103 led_cdev->activated =
false;
110 static struct led_trigger timer_led_trigger = {
112 .activate = timer_trig_activate,
113 .deactivate = timer_trig_deactivate,
116 static int __init timer_trig_init(
void)
121 static void __exit timer_trig_exit(
void)