]> 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)
commit6eb7eafb65dd114909f6997d5ab885ed2086d6c9
tree59cde7e892373c092d223b8df631a6c2a2cb63bd
parent1d1d72c43a6012ec577024270053d83c033df9d9
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