diff options
author | Nate Case <ncase@xes-inc.com> | 2008-07-16 17:49:55 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-07-23 04:49:56 -0400 |
commit | f46e9203d9a100bae216cc06e17f2e77351aa8d8 (patch) | |
tree | 169cb323535845591afcef0298c29ba91b9bc749 /include/linux/leds.h | |
parent | dd1160dc1842ae172495a6da274a77e35c593ed8 (diff) |
leds: Add support for Philips PCA955x I2C LED drivers
This driver supports the PCA9550, PCA9551, PCA9552, and PCA9553
LED driver chips.
Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r-- | include/linux/leds.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index e7a5e89932fe..d41ccb56146a 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h | |||
@@ -118,6 +118,20 @@ extern void ledtrig_ide_activity(void); | |||
118 | #define ledtrig_ide_activity() do {} while(0) | 118 | #define ledtrig_ide_activity() do {} while(0) |
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | /* | ||
122 | * Generic LED platform data for describing LED names and default triggers. | ||
123 | */ | ||
124 | struct led_info { | ||
125 | const char *name; | ||
126 | char *default_trigger; | ||
127 | int flags; | ||
128 | }; | ||
129 | |||
130 | struct led_platform_data { | ||
131 | int num_leds; | ||
132 | struct led_info *leds; | ||
133 | }; | ||
134 | |||
121 | /* For the leds-gpio driver */ | 135 | /* For the leds-gpio driver */ |
122 | struct gpio_led { | 136 | struct gpio_led { |
123 | const char *name; | 137 | const char *name; |