mfd: twl6040: reg_defaults support for regmap
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 29 Nov 2013 14:03:45 +0000 (16:03 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 19 Dec 2013 17:01:11 +0000 (17:01 +0000)
commitc7f9129d22940720141d1f1e958a51142eff9d21
tree92b505f9061d95902f7c9fe19c5af396df9ce74b
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
mfd: twl6040: reg_defaults support for regmap

Add reg_defaults to regmap and at the same time implement proper power
state handling with using regcache_cache_only(), regcache_sync() and
regcache_mark_dirty().

This will make sure that we do not need to do restore operations in child
drivers anymore.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl6040.c