diff options
author | Sebastian Reichel <sre@debian.org> | 2013-10-22 14:02:56 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-10-25 13:13:25 -0400 |
commit | 30dae2f98612d7c8cd855861b9de205ebd9ef4fa (patch) | |
tree | b1932be08b325d8bae0df489d9d78b2f433841f4 /include | |
parent | b0bb83df0a004ff6ef9b1a11784361c9eb63dbf9 (diff) |
leds: lp55xx: handle enable pin in driver
This patch moves the handling of the chip's enable pin from the board
code into the driver. It also updates all board-code files using the
driver to incorporate this change.
This is needed for device tree support of the enable pin.
Signed-off-by: Sebastian Reichel <sre@debian.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/leds-lp55xx.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/platform_data/leds-lp55xx.h b/include/linux/platform_data/leds-lp55xx.h index c32de4dcec54..624ff9edad6f 100644 --- a/include/linux/platform_data/leds-lp55xx.h +++ b/include/linux/platform_data/leds-lp55xx.h | |||
@@ -67,10 +67,8 @@ struct lp55xx_platform_data { | |||
67 | /* Clock configuration */ | 67 | /* Clock configuration */ |
68 | u8 clock_mode; | 68 | u8 clock_mode; |
69 | 69 | ||
70 | /* Platform specific functions */ | 70 | /* optional enable GPIO */ |
71 | int (*setup_resources)(void); | 71 | int enable_gpio; |
72 | void (*release_resources)(void); | ||
73 | void (*enable)(bool state); | ||
74 | 72 | ||
75 | /* Predefined pattern data */ | 73 | /* Predefined pattern data */ |
76 | struct lp55xx_predef_pattern *patterns; | 74 | struct lp55xx_predef_pattern *patterns; |