summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/at91_adc.c
diff options
context:
space:
mode:
authorAndreas Klinger <ak@it-klinger.de>2017-12-13 18:10:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 16:03:42 +0100
commit1fe899e3ed504b3c982157ba44a3d66970dac6e4 (patch)
treea3a6ad21bf825e86dcf2b7afc0b3721b59e71aa9 /drivers/iio/adc/at91_adc.c
parentd3bf60450d47c180d6588ae0d0bb9ea7147718df (diff)
iio: hx711: fix bug in reset functionality
Return value in hx711_reset() should indicate status of dout otherwise the calling function is reporting an error as false positive If there are two reads too close to each other, then the second one will never succeed. This happens especially when using buffered mode with both channels enabled. When changing the channel on every trigger event the former 100 ms are not enough for waiting until the device indicates normal mode. Wait up to 1 second until the device turns into normal mode. Signed-off-by: Andreas Klinger <ak@it-klinger.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/adc/at91_adc.c')
0 files changed, 0 insertions, 0 deletions