lkml.org 
[lkml]   [2012]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: Set apply_uV only when min and max voltages are defined
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-01-25 12:41    [from the cache]
©2003-2011 Jasper Spaans