TWL4030: make LEDs selectable for twl4030_led_init()
Not all boards have both LEDs hooked, so enabling both on boards with single LED will just waste power. Make it possible to choose LEDs by adding argument to twl4030_led_init(). Using this turn on only LEDB for pandora, leave both LEDs on for all other boards, as it was before this patch. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
This commit is contained in:
committed by
Tom Rix
parent
87d93a1ba2
commit
ead39d7aa3
@@ -76,7 +76,7 @@ int misc_init_r(void)
|
||||
|
||||
twl4030_power_init();
|
||||
#ifdef CONFIG_TWL4030_LED
|
||||
twl4030_led_init();
|
||||
twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRIVER_DM9000
|
||||
|
||||
Reference in New Issue
Block a user