diff options
author | Dan Murphy <dmurphy@ti.com> | 2020-07-16 21:20:01 +0300 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-07-22 15:42:06 +0300 |
commit | 92a81562e695628086acb92f95090ab09d9b9ec0 (patch) | |
tree | 7d41c63208ac3429720c7ad844827eb944ffbb0a /include/linux/platform_data | |
parent | c732eaf01f9c213d34b2d224bcda830089bbcf8a (diff) | |
download | linux-92a81562e695628086acb92f95090ab09d9b9ec0.tar.xz |
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>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/leds-lp55xx.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/platform_data/leds-lp55xx.h b/include/linux/platform_data/leds-lp55xx.h index 00492d6ff018..3441064713a3 100644 --- a/include/linux/platform_data/leds-lp55xx.h +++ b/include/linux/platform_data/leds-lp55xx.h @@ -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 { |