regmap: Add a helper function for regcache sync test
authorKevin Cernekee <cernekee@chromium.org>
Tue, 5 May 2015 22:14:13 +0000 (15:14 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 6 May 2015 12:01:25 +0000 (13:01 +0100)
We're going to add another "does this register need syncing?" check, so
rather than repeating it in three places, we'll separate all of the
relevant logic into a helper function.

Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache.c

Simple merge