iio: adc: vf610: fix the adc register read fail issue
authorFugang Duan <b38611@freescale.com>
Thu, 16 Jul 2015 06:49:09 +0000 (14:49 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 12:35:26 +0000 (13:35 +0100)
commitbf604a4c44a91cc2ceb60d4643a091b6b32cc999
tree66b4704167a01f12580c62a5d2dde8777d67bccb
parentc68a67b7adeec240bd79780635dc0ce74d0cb61a
iio: adc: vf610: fix the adc register read fail issue

Read the register only when the adc register address is 4 byte aligned.
(rather than the other way around).

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
Cc: <Stable.vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/vf610_adc.c