summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSebastian Reichel <sre@debian.org>2013-10-22 20:02:56 +0200
committerBryan Wu <cooloney@gmail.com>2013-10-25 19:13:25 +0200
commit30dae2f98612d7c8cd855861b9de205ebd9ef4fa (patch)
treeb1932be08b325d8bae0df489d9d78b2f433841f4 /include
parentleds-gpio: of: led should not be created if its status is disabled (diff)
downloadlinux-30dae2f98612d7c8cd855861b9de205ebd9ef4fa.tar.xz
linux-30dae2f98612d7c8cd855861b9de205ebd9ef4fa.zip
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.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;