ASoC: adau1701: fix adau1701_reg_read()
authorDaniel Mack <zonque@gmail.com>
Thu, 3 Jul 2014 14:51:36 +0000 (16:51 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 3 Jul 2014 18:42:40 +0000 (19:42 +0100)
Fix a long standing bug in the read register routing of adau1701.
The bytes arrive in the buffer in big-endian, so the result has to be
shifted before and-ing the bytes in the loop.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org

No differences found