regmap: cache: Factor out block sync
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Mar 2013 19:32:28 +0000 (19:32 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 30 Mar 2013 13:52:25 +0000 (13:52 +0000)
The idea of holding blocks of registers in device format is shared between
at least rbtree and lzo cache formats so split out the loop that does the
sync from the rbtree code so optimisations on it can be reused.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>

No differences found