]> git.baikalelectronics.ru Git - kernel.git/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)
commit930c2b58a2a2730ea944b20c57a80fc5b8eb9d07
tree59cde7e892373c092d223b8df631a6c2a2cb63bd
parent8c68cf8383040c425e62cbc61b0baa60d7e7b5e0
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