mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
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>
This commit is contained in:
parent
b0bb83df0a
commit
30dae2f986
5 changed files with 19 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue