Checks ret variable after iio_device_release_direct_mode() Switching _direct_mode() to the _scoped() version Fix some codestyle errors indicated by checkpatch.pl changelog v2 -> v3: - Adding Fixed tag c70df20e3159 ("iio: adc: ad7266: claim direct mode during sensor read") Fernando Yang (3): iio: adc: ad7266: Fix variable checking bug iio: adc: ad7266: Use iio_device_claim_direct_scoped() iio: adc: ad7266: Fix codestyle error drivers/iio/adc/ad7266.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) -- 2.34.1