leds: lp55xx: Add multicolor framework support to lp55xx
Add multicolor framework support for the lp55xx family. Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
@@ -13,18 +13,25 @@
|
||||
#define _LEDS_LP55XX_H
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
#include <linux/led-class-multicolor.h>
|
||||
|
||||
/* Clock configuration */
|
||||
#define LP55XX_CLOCK_AUTO 0
|
||||
#define LP55XX_CLOCK_INT 1
|
||||
#define LP55XX_CLOCK_EXT 2
|
||||
|
||||
#define LP55XX_MAX_GROUPED_CHAN 4
|
||||
|
||||
struct lp55xx_led_config {
|
||||
const char *name;
|
||||
const char *default_trigger;
|
||||
u8 chan_nr;
|
||||
u8 led_current; /* mA x10, 0 if led is not connected */
|
||||
u8 max_current;
|
||||
int num_colors;
|
||||
unsigned int max_channel;
|
||||
int color_id[LED_COLOR_ID_MAX];
|
||||
int output_num[LED_COLOR_ID_MAX];
|
||||
};
|
||||
|
||||
struct lp55xx_predef_pattern {
|
||||
|
Reference in New Issue
Block a user