ASoC: wm8904: Make undocumented registers non-readable
authorAxel Lin <axel.lin@ingics.com>
Wed, 18 Nov 2015 08:24:56 +0000 (16:24 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 18 Nov 2015 13:19:05 +0000 (13:19 +0000)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8904.c

index 2aa23f1b9e3ca132c12e826d980b5154ffbe1478..8172e499e6ed18f33e6f94b2bec1a1647d1c1788 100644 (file)
@@ -312,7 +312,7 @@ static bool wm8904_readable_register(struct device *dev, unsigned int reg)
        case WM8904_FLL_NCO_TEST_1:
                return true;
        default:
-               return true;
+               return false;
        }
 }