]> git.baikalelectronics.ru Git - kernel.git/commit
iio:ad7923: Return error if we didn't get the expected result
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 4 Mar 2013 19:30:00 +0000 (19:30 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 Mar 2013 20:16:40 +0000 (20:16 +0000)
commit4e4e72ce4fc2f7252e3803cd4987d3b7ede60590
tree9f2b4b2cd4b1ca841dc650a45b93b790b78d6664
parenta7a46cff301129a114f9e427a63877788d64e7c2
iio:ad7923: Return error if we didn't get the expected result

Instead of leaving 'val' uninitialized return an error if the result's address
did not match that of the channel we were trying to read.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Patrick Vasseur <patrick.vasseur@c-s.fr>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7923.c