diff options
author | Sebastian Reichel <sre@debian.org> | 2013-10-22 11:02:56 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-10-25 10:13:25 -0700 |
commit | 30dae2f98612d7c8cd855861b9de205ebd9ef4fa (patch) | |
tree | b1932be08b325d8bae0df489d9d78b2f433841f4 /include | |
parent | b0bb83df0a004ff6ef9b1a11784361c9eb63dbf9 (diff) | |
download | linux-30dae2f98612d7c8cd855861b9de205ebd9ef4fa.tar.gz linux-30dae2f98612d7c8cd855861b9de205ebd9ef4fa.tar.bz2 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.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 { /* 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; |