ASoC: Fix memory allocation for snd_soc_dapm_switch names
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 5 Mar 2009 17:06:23 +0000 (17:06 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 6 Mar 2009 13:37:14 +0000 (13:37 +0000)
commit07495f3e5af3a472f0f49957692cac15168fa528
tree42667955b46fdad9bb9fef3f564b347f391540fe
parentb0c5033f02182d1e9634edc737df88b82264e820
ASoC: Fix memory allocation for snd_soc_dapm_switch names

snd_soc_dapm_switch ends up ends up in dapm_new_mixer() (since a switch
is a special case of a mixer with only one input) but this wasn't
correctly handled in the code.

Also fix the coding style for the switch below while we're here.

Reported-by: Joonyoung Shim <dofmind@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c