aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/leds.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r--include/linux/leds.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index c7f0b148df06..62af62915cf7 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -143,9 +143,14 @@ struct gpio_led {
143 const char *name; 143 const char *name;
144 const char *default_trigger; 144 const char *default_trigger;
145 unsigned gpio; 145 unsigned gpio;
146 u8 active_low : 1; 146 unsigned active_low : 1;
147 u8 retain_state_suspended : 1; 147 unsigned retain_state_suspended : 1;
148 unsigned default_state : 2;
149 /* default_state should be one of LEDS_GPIO_DEFSTATE_(ON|OFF|KEEP) */
148}; 150};
151#define LEDS_GPIO_DEFSTATE_OFF 0
152#define LEDS_GPIO_DEFSTATE_ON 1
153#define LEDS_GPIO_DEFSTATE_KEEP 2
149 154
150struct gpio_led_platform_data { 155struct gpio_led_platform_data {
151 int num_leds; 156 int num_leds;