]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: iio: adc: ad7280a: handle error from __ad7280_read32()
authorSlawomir Stepien <sst@poczta.fm>
Sat, 20 Oct 2018 21:04:11 +0000 (23:04 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit09c6190fe05f62ecb0707525c99677200b41a051
tree529e13c0173df2f9f081a51680da9e39c5f01c16
parent6fadfa3a5f0d1e92d8e7bef042c15563653a0ad4
staging: iio: adc: ad7280a: handle error from __ad7280_read32()

BugLink: https://bugs.launchpad.net/bugs/1837664
[ Upstream commit 0559ef7fde67bc6c83c6eb6329dbd6649528263e ]

Inside __ad7280_read32(), the spi_sync_transfer() can fail with negative
error code. This change will ensure that this error is being passed up
in the call stack, so it can be handled.

Signed-off-by: Slawomir Stepien <sst@poczta.fm>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/staging/iio/adc/ad7280a.c