diff options
Diffstat (limited to 'drivers/leds/leds.h')
-rw-r--r-- | drivers/leds/leds.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h index 12b6fe93b135..0214799639f7 100644 --- a/drivers/leds/leds.h +++ b/drivers/leds/leds.h | |||
@@ -27,6 +27,11 @@ static inline void led_set_brightness(struct led_classdev *led_cdev, | |||
27 | led_cdev->brightness_set(led_cdev, value); | 27 | led_cdev->brightness_set(led_cdev, value); |
28 | } | 28 | } |
29 | 29 | ||
30 | static inline int led_get_brightness(struct led_classdev *led_cdev) | ||
31 | { | ||
32 | return led_cdev->brightness; | ||
33 | } | ||
34 | |||
30 | extern struct rw_semaphore leds_list_lock; | 35 | extern struct rw_semaphore leds_list_lock; |
31 | extern struct list_head leds_list; | 36 | extern struct list_head leds_list; |
32 | 37 | ||
@@ -34,9 +39,11 @@ extern struct list_head leds_list; | |||
34 | void led_trigger_set_default(struct led_classdev *led_cdev); | 39 | void led_trigger_set_default(struct led_classdev *led_cdev); |
35 | void led_trigger_set(struct led_classdev *led_cdev, | 40 | void led_trigger_set(struct led_classdev *led_cdev, |
36 | struct led_trigger *trigger); | 41 | struct led_trigger *trigger); |
42 | void led_trigger_remove(struct led_classdev *led_cdev); | ||
37 | #else | 43 | #else |
38 | #define led_trigger_set_default(x) do {} while(0) | 44 | #define led_trigger_set_default(x) do {} while(0) |
39 | #define led_trigger_set(x, y) do {} while(0) | 45 | #define led_trigger_set(x, y) do {} while(0) |
46 | #define led_trigger_remove(x) do {} while(0) | ||
40 | #endif | 47 | #endif |
41 | 48 | ||
42 | ssize_t led_trigger_store(struct device *dev, struct device_attribute *attr, | 49 | ssize_t led_trigger_store(struct device *dev, struct device_attribute *attr, |