Re: [PATCH 02/11] leds: leds-gpio: Enhance pinctrl support

2013-06-04 Thread Linus Walleij
On Fri, May 31, 2013 at 12:13 PM, Hebbar Gururaja wrote: > struct gpio_leds_priv { > int num_leds; > + /* Two optional pin states - default & sleep */ > + struct pinctrl *pinctrl; > + struct pinctrl_state*pins_default; > + struct pinctrl_state*pin

[PATCH 02/11] leds: leds-gpio: Enhance pinctrl support

2013-05-31 Thread Hebbar Gururaja
Amend leds-gpio driver to optionally take a pin control handle and set the state of the pins to: - "default" on boot, resume - "sleep" on suspend() By optionally putting the pins into sleep state in the suspend callback we can accomplish two things. - One is to minimize current leakage from pins