summaryrefslogtreecommitdiff
path: root/drivers/regulator/hi6421-regulator.c
diff options
context:
space:
mode:
authorGuodong Xu <guodong.xu@linaro.org>2014-08-13 11:33:40 (GMT)
committerMark Brown <broonie@linaro.org>2014-08-16 21:55:42 (GMT)
commit871f565055ed232e5751da18a331b73e8254adaf (patch)
tree8aa03c6a83d1c5a675c64935b213c1c18035e49c /drivers/regulator/hi6421-regulator.c
parent79fd114161a764dfa456191af89358b3f5201c87 (diff)
downloadlinux-871f565055ed232e5751da18a331b73e8254adaf.tar.xz
regulator: core: add guard delay between calling regulator_disable and _enable
Some regulator require a minimum delay between its disable and next enable. This is to avoid damages when out-of-range frequent disable/enable of a single regulator can bring to the regulator chip. Add @off_on_delay to struct regulator_desc. Device drivers' can use this field to set this guard time. Add @last_off_jiffy to struct regulator_dev. When @off_on_delay is set by driver, regulator core can store its last off (disable) time into this field. Signed-off-by: Guodong Xu <guodong.xu@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/hi6421-regulator.c')
0 files changed, 0 insertions, 0 deletions