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