diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/leds.h | 9 |
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 | ||
150 | struct gpio_led_platform_data { | 155 | struct gpio_led_platform_data { |
151 | int num_leds; | 156 | int num_leds; |