From: Lars-Peter Clausen Date: Sat, 27 Aug 2011 16:24:13 +0000 (+0200) Subject: ASoC: Fix register cache sync register_writable WARN_ONs X-Git-Tag: v3.1-rc7~30^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c5b756aaa3e4a20c8d4b47b9dc4799b9cfdfcb8;p=pandora-kernel.git ASoC: Fix register cache sync register_writable WARN_ONs Currently the condition for these WARN_ONs is reversed and they are placed before the actual check whether we are going to write to that register. So if the codec implements the register_writable callback we'll get a warning for each writable register when syncing the register cache. While we are at it change the check to use snd_soc_codec_writable_register instead of open-coding it. Signed-off-by: Lars-Peter Clausen Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed