mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
dd1160dc18
commit
f46e9203d9
4 changed files with 407 additions and 0 deletions
|
@ -118,6 +118,20 @@ extern void ledtrig_ide_activity(void);
|
|||
#define ledtrig_ide_activity() do {} while(0)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Generic LED platform data for describing LED names and default triggers.
|
||||
*/
|
||||
struct led_info {
|
||||
const char *name;
|
||||
char *default_trigger;
|
||||
int flags;
|
||||
};
|
||||
|
||||
struct led_platform_data {
|
||||
int num_leds;
|
||||
struct led_info *leds;
|
||||
};
|
||||
|
||||
/* For the leds-gpio driver */
|
||||
struct gpio_led {
|
||||
const char *name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue