diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-08-27 18:24:13 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-31 09:46:16 +0100 |
commit | 6c5b756aaa3e4a20c8d4b47b9dc4799b9cfdfcb8 (patch) | |
tree | 475410b3da2b4189a91b54c9cee90ae8a36e2fab /fs/freevxfs | |
parent | 63fa0a288cfedca681175fe13cf15677e944cdb2 (diff) | |
download | op-kernel-dev-6c5b756aaa3e4a20c8d4b47b9dc4799b9cfdfcb8.zip op-kernel-dev-6c5b756aaa3e4a20c8d4b47b9dc4799b9cfdfcb8.tar.gz |
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 <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'fs/freevxfs')
0 files changed, 0 insertions, 0 deletions