On Thu, May 07, 2009 at 11:40:46AM -0300, Daniel Ribeiro wrote:
> Em Qui, 2009-05-07 ??s 09:27 +0100, Mark Brown escreveu:

> > regulator_get() and regulator_put() compile out if regulator is not
> > defined, though you will get a dummy regulator back.

> Will regulator_get() return an error case config_regulator is not
> defined? Im relying on this to use the pdata case config_regulator is
> not set.

No, it will return success.  You can see the stub implementation in the
API header files.

> > What should happen if the system both supplies platform data and a
> > regulator?

> If both are supplied and config_regulator is set, then the regulator
> should be used. If config_regulator is not defined, or if the machine
> does not supplies a regulator, then pdata->setpower and pdata->ocr_mask
> should be used instead.

Is it perhaps warning about having both set up?

Reply via email to