aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/leds-lp5521.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/leds-lp5521.h')
-rw-r--r--include/linux/leds-lp5521.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/linux/leds-lp5521.h b/include/linux/leds-lp5521.h
index 0d72c7f..3f071ec 100644
--- a/include/linux/leds-lp5521.h
+++ b/include/linux/leds-lp5521.h
@@ -5,8 +5,6 @@
*
* Contact: Samu Onkalo <samu.p.onkalo@nokia.com>
*
- * Updated: Milo(Woogyom) Kim <milo.kim@ti.com>
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
@@ -34,6 +32,15 @@ struct lp5521_led_config {
u8 max_current;
};
+struct lp5521_led_pattern {
+ u8 *r;
+ u8 *g;
+ u8 *b;
+ u8 size_r;
+ u8 size_g;
+ u8 size_b;
+};
+
#define LP5521_CLOCK_AUTO 0
#define LP5521_CLOCK_INT 1
#define LP5521_CLOCK_EXT 2
@@ -54,11 +61,13 @@ struct lp5521_platform_data {
struct lp5521_led_config *led_config;
u8 num_channels;
u8 clock_mode;
- u8 update_config;
int (*setup_resources)(void);
void (*release_resources)(void);
void (*enable)(bool state);
const char *label;
+ u8 update_config;
+ struct lp5521_led_pattern *patterns;
+ int num_patterns;
};
#endif /* __LINUX_LP5521_H */