On Sun, Nov 28, 2010 at 08:05:06PM +0100, Guennadi Liakhovetski wrote:
FWIW I'm looking at implementing a standard regulator API feature along
these lines in the background. This should hopefully mean we don't need
driver support for most simple power control applications. No ETA yet.
The way MMC handled this was to provide a standard version of the hook
in the core which could be used by platforms with regulators supplying
the device - they just assign the appropriate function as their power()
operation AIUI. That seems a fairly clean way of keeping stuff in the
core without giving up the flexibility.
It does save everyone open coding stuff.
--