WSL2-Linux-Kernel/drivers/staging/iio
Phil Turnbull 776b645315 staging: iio: ad5933: Return correct value for AD5933_OUT_RANGE.
The 'break' statement after calling ad5933_cmd only breaks out of the
'for' loop, which then unconditionally sets the return value to -EINVAL.
Move the initialisation of 'ret' so we return the correct value.

Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-08-15 15:39:04 +01:00
..
Documentation Staging: iio: Documentation: Remove unused sysfs attributes 2016-01-30 16:27:11 +00:00
accel Third set of IIO new device support, features and cleanups for the 4.8 cycle. 2016-07-14 12:05:29 +09:00
adc Third set of IIO new device support, features and cleanups for the 4.8 cycle. 2016-07-14 12:05:29 +09:00
addac iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
cdc iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
frequency Staging: iio: ad9832: Replace 'unsigned' with 'unsigned int' 2016-03-28 07:30:36 -07:00
gyro spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
impedance-analyzer staging: iio: ad5933: Return correct value for AD5933_OUT_RANGE. 2016-08-15 15:39:04 +01:00
light iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
meter First round of IIO new device support, features and cleanups for the 4.7 cycle. 2016-04-04 12:31:05 -07:00
resolver staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00
trigger First round of IIO new device support, features and cleanups for the 4.7 cycle. 2016-04-04 12:31:05 -07:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
TODO staging:iio: Remove periodic RTC trigger driver 2016-02-27 17:18:38 +00:00
ring_hw.h staging: iio: Add #include guards to header files 2014-09-28 22:19:04 -04:00