]> Pileus Git - ~andy/linux/commit
ASoC: si476x: Remove custom register I/O implementation
authorMark Brown <broonie@linaro.org>
Thu, 26 Sep 2013 18:36:11 +0000 (19:36 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 26 Sep 2013 18:38:28 +0000 (19:38 +0100)
commitd6173df35f2dbd0e11f2361fc979ebf2e53cb6cc
tree59cde7e892373c092d223b8df631a6c2a2cb63bd
parent4a10c2ac2f368583138b774ca41fac4207911983
ASoC: si476x: Remove custom register I/O implementation

The current si476x I/O implementation wraps the regmap for the core with
functions that make the register map cache only when the device is powered
down. This implementation appears to be incomplete since there is no code
to synchronise the cache so writes done while the core is powered down
will be ignored, the device will only be configured if it is powered.

A better and more idiomatic approach would be to have the MFD manage the
cache, making the device cache only when it powers things down. This also
allows ASoC to use the standard regmap helpers for the device which helps
remove the ASoC custom ones so do convert to do that.

Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/si476x.c