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)
commitf8bd822cbf953299b2957b45f6a43c08e7931ddc
treedd728ef96a28c472dbcaf1b95e43ebc1954666f4
parent78493f2d7b51d6f6d03982cee559c62dfab4c292
regmap: cache: Factor out block sync

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>
drivers/base/regmap/internal.h
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regcache.c