ASoC: max98088 - fix element type of the register cache.
authorChih-Chung Chang <chihchung@chromium.org>
Mon, 15 Jul 2013 16:38:46 +0000 (09:38 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 2 Aug 2013 20:14:57 +0000 (22:14 +0200)
commit87b49e0cc4e75c2d1018bc3e74459ba14916ae74
tree6b78fec81fe7e9b3b8bfddd0f37d2cc8f063106d
parent28518ed66242869c1b04ab40d4e84ce5fedb0c56
ASoC: max98088 - fix element type of the register cache.

commit cb6f66a2d278e57a6c9d8fb59bd9ebd8ab3965c2 upstream.

The registers of max98088 are 8 bits, not 16 bits. This bug causes the
contents of registers to be overwritten with bad values when the codec
is suspended and then resumed.

Signed-off-by: Chih-Chung Chang <chihchung@chromium.org>
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/soc/codecs/max98088.c