]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sh: fsi: remove runtime register check from fsi_master_xxx
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 3 Dec 2010 08:38:03 +0000 (17:38 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Dec 2010 12:24:15 +0000 (12:24 +0000)
commit39751bf24f5f6f9419e8bfbf8df19df22c3380c4
tree32003d033a627ba8502c7521721dddc67f483165
parent65d096bbff2953d00fe996f8ac4a6949a12c7963
ASoC: sh: fsi: remove runtime register check from fsi_master_xxx

Current FSI driver was checking register range on fsi_master_xxx function.
This runtime check was added to avoid an illegal access
from wrong/mistake implementation.
But it is useless check under the correct implementation.
This patch escape runtime check by using macro technique.
If there is wrong implementation, it will be compile error.

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