]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Add notifier event on regulator disable
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Dec 2009 21:12:27 +0000 (21:12 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 3 Mar 2010 14:49:23 +0000 (14:49 +0000)
commit0271ba34dc195427e41f227678a01b19c7b3eb3c
treec80020268cc8b2b62524f4e9f29278332db37310
parent409092b523dd6e22c00fbc910d4aa3f0db7b613c
regulator: Add notifier event on regulator disable

The intended use case is for drivers which disable regulators to save
power but need to do some work to restore the hardware state when
restarting.  If the supplies are not actually disabled due to board
limits or sharing with other active devices this notifier allows the
driver to avoid unneeded reinitialisation, particularly when used with
runtime PM.

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