]> git.sur5r.net Git - u-boot/commit
power: regulator: Add limits checking while setting current
authorKeerthy <j-keerthy@ti.com>
Wed, 26 Oct 2016 08:12:32 +0000 (13:42 +0530)
committerSimon Glass <sjg@chromium.org>
Sat, 26 Nov 2016 00:59:26 +0000 (17:59 -0700)
commit5483456e919f08e51914d296e8720eaa0a288b68
treea44b9eef8d302db36988f6b76c14e7519cdcb07e
parenteaadcf38ddfe23aee9c3a85a96d4103f5398fc5e
power: regulator: Add limits checking while setting current

Currently the specific set ops functions are directly
called without any check for min/max current limits for a regulator.
Check for them and proceed.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Fixed checking of current limits:
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/power/regulator/regulator-uclass.c