ASoC: tegra: use regmap more directly
authorStephen Warren <swarren@nvidia.com>
Wed, 6 Jun 2012 23:15:06 +0000 (17:15 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 7 Jun 2012 23:03:14 +0000 (07:03 +0800)
commit0f163546a772d62250f59bad6a9338a0e3a2605c
tree3005bdac3443c38efd57908f74cbbad55a37e870
parentc92a40e3a163b6708e0dd82ba4612f79df846912
ASoC: tegra: use regmap more directly

Stop open-coding the caching of the ctrl registers; instead, use
regmap_update_bits() to update parts of the register from different
places. The removal of the open-coded cache will allow controls to be
created which touch registers, which will be necessary if any of these
modules are converted to CODECs.

Get rid of tegra*_read/write; just call regmap_read/write directly.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra20_i2s.c
sound/soc/tegra/tegra20_i2s.h
sound/soc/tegra/tegra20_spdif.c
sound/soc/tegra/tegra20_spdif.h
sound/soc/tegra/tegra30_i2s.c
sound/soc/tegra/tegra30_i2s.h