[lkml]   [2012]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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    [W:0.018 / U:0.448 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site