mfd: Avoid twl6040-codec PLL reconfiguration when not needed
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Sat, 14 Jan 2012 19:58:44 +0000 (20:58 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 3 Feb 2012 18:03:50 +0000 (19:03 +0100)
commit2bd05db718cf452fe235c7c08083b2e60f787f3a
treeb733153a25641ff8672fd608d92f65affe834dfd
parentf8447d6c213273b444c81eaa2449f55510229d4f
mfd: Avoid twl6040-codec PLL reconfiguration when not needed

Do not reconfigure the PLL in case it has been configured already
with the requested parameters.
In case of different PLL configuration do only the needed changes.
This can save considerable amount of time since we can avoid the
defined protocol (with delays) for the PLL configuration.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl6040-core.c