26 #include <linux/types.h>
27 #include <linux/export.h>
30 #define LED_POWER_OFF 0x08
36 static void raq_web_led_set(
struct led_classdev *led_cdev,
47 writeb(led_value, led_port);
49 spin_unlock_irqrestore(&led_value_lock, flags);
54 .brightness_set = raq_web_led_set,
57 static void raq_power_off_led_set(
struct led_classdev *led_cdev,
68 writeb(led_value, led_port);
70 spin_unlock_irqrestore(&led_value_lock, flags);
74 .name =
"raq::power-off",
75 .brightness_set = raq_power_off_led_set,
76 .default_trigger =
"power-off",
126 .probe = cobalt_raq_led_probe,
129 .name =
"cobalt-raq-leds",
134 static int __init cobalt_raq_led_init(
void)