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)
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>

No differences found