Skip to content
Commit 8cd10327 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

iio: adc: ad7793: Add missing error code in ad7793_setup()

commit 4ed243b1 upstream.

Set error code while device ID query failed.

Fixes: 88bc3054

 ("IIO: ADC: New driver for AD7792/AD7793 3 Channel SPI ADC")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 179e5b5a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment