ASoC: Tegra: utils: Don't use global variables
authorStephen Warren <swarren@nvidia.com>
Fri, 28 Jan 2011 21:26:40 +0000 (14:26 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 31 Jan 2011 13:16:29 +0000 (13:16 +0000)
commitd64e57cef0436833cfc9620e350ec6f5b041c9a9
tree173c1f1bf2b87dfdc3bd7da379b9cf67e07b7906
parentc244d477b7a5e0060b05d6ef90b7b29ef72a2188
ASoC: Tegra: utils: Don't use global variables

Instead, have the machine driver provide storage for the utility data
somehow.

For Harmony in particular, store this within struct tegra_harmony, itself
referenced by snd_soc_card's drvdata.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/harmony.c
sound/soc/tegra/tegra_asoc_utils.c
sound/soc/tegra/tegra_asoc_utils.h