]> git.karo-electronics.de Git - mv-sheeva.git/commit
ASoC: sh: fsi: remove runtime register check from fsi_reg_xxx
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 3 Dec 2010 08:37:55 +0000 (17:37 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Dec 2010 12:24:02 +0000 (12:24 +0000)
commite8c8b6318c3dad742d03b5fff5360729f7ac2e5a
tree577fbaf20de7116f3d74b9da48d28f2e2d68580e
parent2b0e73025f74699e9cc9df60649fcc14cd02481b
ASoC: sh: fsi: remove runtime register check from fsi_reg_xxx

Current FSI driver was checking register range on fsi_reg_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