diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-25 21:16:52 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-25 21:16:52 +0000 |
commit | fdc1f5d0608faa9bb06c1e7c662831550b32d2d3 (patch) | |
tree | 322b20dad4c7e7d3aa95484a78523651b0721c7e /sound/soc/codecs/tlv320aic3x.c | |
parent | 77c667d1365e19c2848d37bf408e2f0b086b63d9 (diff) | |
parent | 25436180ee8bed6740f29d92c2030c759885c147 (diff) | |
download | talos-obmc-linux-fdc1f5d0608faa9bb06c1e7c662831550b32d2d3.tar.gz talos-obmc-linux-fdc1f5d0608faa9bb06c1e7c662831550b32d2d3.zip |
Merge branch 'for-2.6.37' into for-2.6.38
Diffstat (limited to 'sound/soc/codecs/tlv320aic3x.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index bfd036a2c83c..fc5abdf0bcb0 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c @@ -1180,7 +1180,7 @@ EXPORT_SYMBOL_GPL(aic3x_set_gpio); int aic3x_get_gpio(struct snd_soc_codec *codec, int gpio) { u8 reg = gpio ? AIC3X_GPIO2_REG : AIC3X_GPIO1_REG; - u8 val, bit = gpio ? 2: 1; + u8 val = 0, bit = gpio ? 2 : 1; aic3x_read(codec, reg, &val); return (val >> bit) & 1; @@ -1208,7 +1208,7 @@ EXPORT_SYMBOL_GPL(aic3x_set_headset_detection); int aic3x_headset_detected(struct snd_soc_codec *codec) { - u8 val; + u8 val = 0; aic3x_read(codec, AIC3X_HEADSET_DETECT_CTRL_B, &val); return (val >> 4) & 1; } @@ -1216,7 +1216,7 @@ EXPORT_SYMBOL_GPL(aic3x_headset_detected); int aic3x_button_pressed(struct snd_soc_codec *codec) { - u8 val; + u8 val = 0; aic3x_read(codec, AIC3X_HEADSET_DETECT_CTRL_B, &val); return (val >> 5) & 1; } |