summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/leds-lp55xx.h
diff options
context:
space:
mode:
authorSebastian Reichel <sre@debian.org>2013-10-22 11:02:56 -0700
committerBryan Wu <cooloney@gmail.com>2013-10-25 10:13:25 -0700
commit30dae2f98612d7c8cd855861b9de205ebd9ef4fa (patch)
treeb1932be08b325d8bae0df489d9d78b2f433841f4 /include/linux/platform_data/leds-lp55xx.h
parentb0bb83df0a004ff6ef9b1a11784361c9eb63dbf9 (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/linux/platform_data/leds-lp55xx.h')
-rw-r--r--include/linux/platform_data/leds-lp55xx.h6
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 {
/* Clock configuration */
u8 clock_mode;
- /* Platform specific functions */
- int (*setup_resources)(void);
- void (*release_resources)(void);
- void (*enable)(bool state);
+ /* optional enable GPIO */
+ int enable_gpio;
/* Predefined pattern data */
struct lp55xx_predef_pattern *patterns;