]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fix ak4104 register array access
authorDaniel Mack <daniel@caiaq.de>
Fri, 26 Feb 2010 06:36:54 +0000 (14:36 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Mar 2010 19:19:36 +0000 (19:19 +0000)
commiteb83d15b54e9c482625c7b5e576d4f64c1c040f6
tree1f1ce47dbf97b22b41560295da81d263c052132c
parentbd56a4b40292c863309580a04d7de8fce6f60203
ASoC: fix ak4104 register array access

Don't touch the variable 'reg' to construct the value for the actual SPI
transport. This variable is again used to access the driver's register
cache, and so random memory is overwritten.
Compute the value in-place instead.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: stable@kernel.org
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ak4104.c