Re: [PATCH 1/4] regulator: core: Support trying to get close to a certain voltage
From: Mark Brown
Date: Thu Dec 11 2014 - 12:10:14 EST
On Thu, Dec 11, 2014 at 08:09:13AM -0800, Doug Anderson wrote:
> On Thu, Dec 11, 2014 at 4:31 AM, Mark Brown <broonie@xxxxxxxxxx> wrote:
> > This is just an implementation detail, everything you're saying here
> > applies equally to any user specifying by tolerance rather than range.
> > If the reason for doing this is to fix that problem then a new API isn't
> > the way to go about it.
> OK, I'll give a shot at taking my code and using it as a new
> implementation for regulator_set_voltage_tol(). In the SD card code
> I'll pick some reasonable tolerances--they won't be exactly what the
> spec says, but they ought to be good enough. If Ulf comes back and
> yells at me then we can revisit adding a new API.
OK, thanks. Even if a new interface does get added the implementation
needs to be shared with that for setting by tolerance, they're doing the
same thing.
Please also bear in mind the need to handle shared supplies in your
implementation.
Attachment:
signature.asc
Description: Digital signature