]> git.karo-electronics.de Git - linux-beck.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)
commit71f6e0645be42f93c0f90dfcc93b9d2d277c2ee6
treeb7c6ef8098423f1f42627f132a587b25038aa07f
parentefd9eb96d5604c2c133e500f7b8c7b3f3fbdece8
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