From: Takashi Iwai Date: Wed, 4 Mar 2015 14:29:17 +0000 (+0100) Subject: regmap: Skip read-only registers in regcache_sync() X-Git-Tag: omap-for-v4.1/fixes-rc1~314^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ceba98d3fe204c59e5f63c4d834b45dcfe789f0;p=pandora-kernel.git regmap: Skip read-only registers in regcache_sync() regcache_sync() spews warnings when a value was cached for a read-only register as it tries to write all registers no matter whether they are writable or not. This patch adds regmap_wrtieable() checks for avoiding it in regcache_sync_block_single() and regcache_block_raw(). Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown --- Reading git-diff-tree failed