aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/leds-lp5521.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/leds-lp5521.h b/include/linux/leds-lp5521.h
index e9ab583cac36..3f071ec019b2 100644
--- a/include/linux/leds-lp5521.h
+++ b/include/linux/leds-lp5521.h
@@ -32,6 +32,15 @@ struct lp5521_led_config {
32 u8 max_current; 32 u8 max_current;
33}; 33};
34 34
35struct lp5521_led_pattern {
36 u8 *r;
37 u8 *g;
38 u8 *b;
39 u8 size_r;
40 u8 size_g;
41 u8 size_b;
42};
43
35#define LP5521_CLOCK_AUTO 0 44#define LP5521_CLOCK_AUTO 0
36#define LP5521_CLOCK_INT 1 45#define LP5521_CLOCK_INT 1
37#define LP5521_CLOCK_EXT 2 46#define LP5521_CLOCK_EXT 2
@@ -57,6 +66,8 @@ struct lp5521_platform_data {
57 void (*enable)(bool state); 66 void (*enable)(bool state);
58 const char *label; 67 const char *label;
59 u8 update_config; 68 u8 update_config;
69 struct lp5521_led_pattern *patterns;
70 int num_patterns;
60}; 71};
61 72
62#endif /* __LINUX_LP5521_H */ 73#endif /* __LINUX_LP5521_H */