diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-02-17 10:04:07 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-04-06 11:06:26 -0400 |
commit | defb512d2576992c63ba1c18c24eea31cfeaa26e (patch) | |
tree | eb2ae7031d62073d452d55192167e66767e99faa /include/linux/leds.h | |
parent | 41c42ff5dbe29b7b826e6736f960959c76e7acf0 (diff) |
leds: Add suspend/resume state flags to leds-gpio
Add an option to preserve LED state when suspending/resuming to the LED
gpio driver. Based on a suggestion from Robert Jarzmik.
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r-- | include/linux/leds.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index 17d277e0c4a6..376fe07732ea 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h | |||
@@ -141,7 +141,8 @@ struct gpio_led { | |||
141 | const char *name; | 141 | const char *name; |
142 | const char *default_trigger; | 142 | const char *default_trigger; |
143 | unsigned gpio; | 143 | unsigned gpio; |
144 | u8 active_low; | 144 | u8 active_low : 1; |
145 | u8 retain_state_suspended : 1; | ||
145 | }; | 146 | }; |
146 | 147 | ||
147 | struct gpio_led_platform_data { | 148 | struct gpio_led_platform_data { |