lkml.org 
[lkml]   [2013]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFT] regulator: lp8788-ldo: Use ldo->en_pin to check if regulator is enabled by external pin
On Wed, Jan 09, 2013 at 02:34:40AM +0000, Kim, Milo wrote:

> - goto wash;
> +
> + if (ret == -EBUSY && config->is_gpio_shared)
> + shared_ena_pin = true;
> +
> + if (!shared_ena_pin)
> + goto wash;

It'd be much nicer if we were able to just keep a list of GPIOs
controlling regulators as we see them and automatically work out if
they're shared. Probably we should just refactor the code so that the
GPIO object is a separate thing rather than just storing the state
directly in the regulator struct.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-01-09 17:21    [W:0.398 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site