regulator: Add over current protection (OCP) support
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 17 Jul 2015 21:41:54 +0000 (14:41 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jul 2015 17:28:46 +0000 (18:28 +0100)
commit3a003baeec246f604ed1d2e0087560d7f15edcc6
tree6b9e16f35e605a1b23386be578df569b599e978b
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
regulator: Add over current protection (OCP) support

Some regulators can automatically shut down when they detect an
over current event. Add an op (set_over_current_protection) and a
DT property + constraint to support this capability.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/regulator.txt
drivers/regulator/core.c
drivers/regulator/of_regulator.c
include/linux/regulator/driver.h
include/linux/regulator/machine.h