Re: [PATCH v2 2/4] regulator-core: manage enable GPIO list

2013-01-26 Thread Mark Brown
On Tue, Jan 15, 2013 at 04:35:46AM +, Kim, Milo wrote: > +/** > + * Balance enable_count of each GPIO and actual GPIO pin control. > + * GPIO is enabled in case of initial use. (enable_count is 0) > + * GPIO is disabled when it is not shared any more. (enable_count is 1) > + */ > +static void

[PATCH v2 2/4] regulator-core: manage enable GPIO list

2013-01-14 Thread Kim, Milo
To support shared enable GPIO pin, replace GPIO code with new static functions regulator_ena_gpio_ctrl() Find a GPIO information in the enable GPIO list and control the pin. _do_ena_gpio_ctrl() Balance the reference count of each GPIO and actual pin control. The count is incremented w