10 #include <linux/kernel.h>
14 #include <linux/slab.h>
19 #if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS)
33 {
"shark:amber0",
"default-on", },
34 {
"shark:green",
"heartbeat", },
35 {
"shark:amber1",
"cpu0" },
38 static u16 led_reg_read(
void)
54 struct shark_led, cdev);
68 struct shark_led, cdev);
69 u16 reg = led_reg_read();
74 static int __init shark_leds_init(
void)
79 if (!machine_is_shark())
83 struct shark_led *
led;
89 led->cdev.name = shark_leds[
i].name;
90 led->cdev.brightness_set = shark_led_set;
91 led->cdev.brightness_get = shark_led_get;
92 led->cdev.default_trigger = shark_leds[
i].trigger;
95 led->mask =
BIT(i + 5);
105 reg = led_reg_read();