diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2007-10-12 21:27:47 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2007-10-12 21:27:47 -0400 |
commit | b981d8b3f5e008ff10d993be633ad00564fc22cd (patch) | |
tree | e292dc07b22308912cf6a58354a608b9e5e8e1fd /include/linux/leds.h | |
parent | b11d2127c4893a7315d1e16273bc8560049fa3ca (diff) | |
parent | 2b9e0aae1d50e880c58d46788e5e3ebd89d75d62 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/macintosh/adbhid.c
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 */ |