]> git.baikalelectronics.ru Git - uboot.git/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)
commitfc50f6c07b70fa2261de85ce644ffb16a85d270d
treea44b9eef8d302db36988f6b76c14e7519cdcb07e
parentbc9dc2e63901c76ef12d0cd6c2d8e1c86055deaf
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