]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: cs42xx8: Check return value of regmap_read and report correct chipid value
authorAxel Lin <axel.lin@ingics.com>
Fri, 4 Apr 2014 03:04:35 +0000 (11:04 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 4 Apr 2014 10:11:18 +0000 (11:11 +0100)
commit06b4b813058f6092ded5d7e0d92d4c34d92975bd
tree0154d76655f0b9bbd555af22754eecb0449a1639
parentc159a85013afbb8283f0c7272812952e04d5c3a1
ASoC: cs42xx8: Check return value of regmap_read and report correct chipid value

Fix checking return value of regmap_read().
Also fix reporting the chip_id value. CS42XX8_CHIPID_CHIP_ID_MASK is 0xF0,
so the chip_id value is (val & CS42XX8_CHIPID_CHIP_ID_MASK) >> 4).

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Paul Handrigan <paul.handrigan@cirrus.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Acked-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/cs42xx8.c