diff options
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r-- | include/linux/leds.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index 88afceffb7cb..421175092ee2 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h | |||
@@ -13,10 +13,8 @@ | |||
13 | #define __LINUX_LEDS_H_INCLUDED | 13 | #define __LINUX_LEDS_H_INCLUDED |
14 | 14 | ||
15 | #include <linux/list.h> | 15 | #include <linux/list.h> |
16 | #include <linux/spinlock.h> | ||
17 | 16 | ||
18 | struct device; | 17 | struct device; |
19 | struct class_device; | ||
20 | /* | 18 | /* |
21 | * LED Core | 19 | * LED Core |
22 | */ | 20 | */ |
@@ -38,7 +36,7 @@ struct led_classdev { | |||
38 | void (*brightness_set)(struct led_classdev *led_cdev, | 36 | void (*brightness_set)(struct led_classdev *led_cdev, |
39 | enum led_brightness brightness); | 37 | enum led_brightness brightness); |
40 | 38 | ||
41 | struct class_device *class_dev; | 39 | struct device *dev; |
42 | struct list_head node; /* LED Device list */ | 40 | struct list_head node; /* LED Device list */ |
43 | char *default_trigger; /* Trigger to use */ | 41 | char *default_trigger; /* Trigger to use */ |
44 | 42 | ||
@@ -110,4 +108,18 @@ extern void ledtrig_ide_activity(void); | |||
110 | #define ledtrig_ide_activity() do {} while(0) | 108 | #define ledtrig_ide_activity() do {} while(0) |
111 | #endif | 109 | #endif |
112 | 110 | ||
111 | /* For the leds-gpio driver */ | ||
112 | struct gpio_led { | ||
113 | const char *name; | ||
114 | char *default_trigger; | ||
115 | unsigned gpio; | ||
116 | u8 active_low; | ||
117 | }; | ||
118 | |||
119 | struct gpio_led_platform_data { | ||
120 | int num_leds; | ||
121 | struct gpio_led *leds; | ||
122 | }; | ||
123 | |||
124 | |||
113 | #endif /* __LINUX_LEDS_H_INCLUDED */ | 125 | #endif /* __LINUX_LEDS_H_INCLUDED */ |