]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commita1c8a5512b7cddc81767172f0de37b155cea039f
tree23404a6a919910d9909d5261e0119748ade7e725
parentf114040e3ea6e07372334ade75d1ee0775c355e1
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