]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sh_fsi: avoid using global variable
authorKuninori Morimoto <morimoto.kuninori@renesas.com>
Wed, 2 Dec 2009 06:11:08 +0000 (15:11 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 3 Dec 2009 10:53:37 +0000 (10:53 +0000)
commit3ed50143d8ec03e701bb3c6a5af41389aca4d217
treeb7c6ef8098423f1f42627f132a587b25038aa07f
parent4e4e1c70a411ac7273b47bfa8ef7cd95fcb01a81
ASoC: sh_fsi: avoid using global variable

Current FSI driver use global variable to access device data.
But this style will be broken
if SuperH come with multiple FSI blocks in future.
To solve this problem, this patch use cpu_dai->private_data.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/sh/fsi.c