]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add PRE_DISABLE notification
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Mon, 24 Nov 2014 14:10:52 +0000 (14:10 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 24 Nov 2014 15:26:02 +0000 (15:26 +0000)
commit987af00d6ac471bbe97fc0c9d5fe5698e956c43e
tree23404a6a919910d9909d5261e0119748ade7e725
parent794664fc5e82534aa444b079f807e339c4d8d9b5
regulator: core: Add PRE_DISABLE notification

Add a PRE_DISABLE notification so that consumers can use a
notifier to run any steps required to prepare for the
regulator being switched off. Since the regulator disable
can fail an abort notification is also added.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/consumer.h