]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: wm_hubs: Use SOC_SINGLE_EXT() instead of open-coding it
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Jun 2013 17:34:01 +0000 (19:34 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 19 Jun 2013 18:47:44 +0000 (19:47 +0100)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm_hubs.c

index f5d81b9487598753e3f0ce4c93b766d7d3347f54..2d9e099415a58cbe353c99f32f6f089a200db2de 100644 (file)
@@ -693,10 +693,8 @@ void wm_hubs_update_class_w(struct snd_soc_codec *codec)
 EXPORT_SYMBOL_GPL(wm_hubs_update_class_w);
 
 #define WM_HUBS_SINGLE_W(xname, reg, shift, max, invert) \
-{      .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
-       .info = snd_soc_info_volsw, \
-       .get = snd_soc_dapm_get_volsw, .put = class_w_put_volsw, \
-       .private_value =  SOC_SINGLE_VALUE(reg, shift, max, invert) }
+       SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
+               snd_soc_dapm_get_volsw, class_w_put_volsw)
 
 static int class_w_put_volsw(struct snd_kcontrol *kcontrol,
                              struct snd_ctl_elem_value *ucontrol)