regmap: cache: Don't attempt to sync non-writeable registers
authorDylan Reid <dgreid@chromium.org>
Tue, 18 Mar 2014 20:45:09 +0000 (13:45 -0700)
committerMark Brown <broonie@linaro.org>
Wed, 19 Mar 2014 10:38:56 +0000 (10:38 +0000)
commit83f8475ce99fa1c44b03059b6cc5dcaae69b4819
tree2328352e758b39bed089419ca9cec7a72c59643f
parent756173285e87c792c6fa8eaaaf1217cfcf1416dd
regmap: cache: Don't attempt to sync non-writeable registers

In the regcache_default_sync, if a register isn't writeable, then
_regmap_write will return an error and the rest of the sync will be
aborted.  Avoid this by checking if a register is writeable before
trying to sync it.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regcache.c
This page took 0.03141 seconds and 5 git commands to generate.