Re: [PATCH] regulator: Set apply_uV only when min and max voltagesare defined

From: Mark Brown
Date: Wed Jan 25 2012 - 06:39:41 EST


On Wed, Jan 25, 2012 at 10:31:45AM +0100, Karol Lewandowski wrote:
> apply_uV is errornously set when regulator is instantiated from device
> tree, even when it doesn't contain any voltage constraints.

Applied, thanks. But really

> - if (constraints->min_uV == constraints->max_uV)
> + if (min_uV && max_uV && constraints->min_uV == constraints->max_uV)

we only actually need to check one of min_uV and max_uV due to the
equality check.

Attachment: signature.asc
Description: Digital signature