ASoC: wm8904: Make undocumented registers non-readable
[deliverable/linux.git] / sound / soc / codecs / wm8904.c
index b783743dc97e5a7e82699490aab28ca2e8380950..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;
        }
 }
 
@@ -534,7 +534,7 @@ static int wm8904_put_deemph(struct snd_kcontrol *kcontrol,
 {
        struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
        struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec);
-       int deemph = ucontrol->value.integer.value[0];
+       unsigned int deemph = ucontrol->value.integer.value[0];
 
        if (deemph > 1)
                return -EINVAL;
This page took 0.056018 seconds and 5 git commands to generate.