Re: [PATCH v2] regulator: ad5398: Fix min/max current limit boundary checking
From: Axel Lin
Date: Tue Jul 03 2012 - 05:45:23 EST
>>As long as it is smaller than the maximum requested current, yes. You
>>request a current range with the regulator API and any value within this
>>range is fine as the actual output current.
>>
>
> If so, please also set the max_uA as well.
The equation to calculate the selector does not depend on max_uA.
So I think we don't need to set the requested max_uA.
Current does check the selected current by:
if (ad5398_calc_current(chip, selector) > max_uA)
return -EINVAL;
This ensures the selected current falls within specified range.
Regards,
Axel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/