13 #include <linux/kernel.h>
20 #include <linux/module.h>
22 #define DRVNAME "wrap-led"
23 #define WRAP_POWER_LED_GPIO 2
24 #define WRAP_ERROR_LED_GPIO 3
25 #define WRAP_EXTRA_LED_GPIO 18
29 static void wrap_power_led_set(
struct led_classdev *led_cdev,
38 static void wrap_error_led_set(
struct led_classdev *led_cdev,
47 static void wrap_extra_led_set(
struct led_classdev *led_cdev,
57 .name =
"wrap::power",
58 .brightness_set = wrap_power_led_set,
59 .default_trigger =
"default-on",
64 .name =
"wrap::error",
65 .brightness_set = wrap_error_led_set,
70 .name =
"wrap::extra",
71 .brightness_set = wrap_extra_led_set,
110 .probe = wrap_led_probe,
111 .remove = wrap_led_remove,
118 static int __init wrap_led_init(
void)
131 pdev = platform_device_register_simple(
DRVNAME, -1,
NULL, 0);
142 static void __exit wrap_led_exit(
void)