diff options
author | 2019-09-09 14:37:48 +0200 | |
---|---|---|
committer | 2019-10-22 12:58:07 +0100 | |
commit | 68d8ab3cf1a98e9d296221afdb6433715fd57535 (patch) | |
tree | 475034390dbcbf1afdef5b6ce0c2d9301def02d9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | iio: adc: stm32-adc: fix kernel-doc warnings (diff) | |
download | linux-dev-68d8ab3cf1a98e9d296221afdb6433715fd57535.tar.xz linux-dev-68d8ab3cf1a98e9d296221afdb6433715fd57535.zip |
iio: adc: hx711: optimize performance in read cycle
Set gain in hx711_reset() to its default value after a reset cycle. This
omits one precautionary read cycle, because the read is performed in
hx711_set_gain_for_channel() anyway if gain has changed.
Check for DOUT low and if its high wait some time if it goes down
instead of doing a blind reset cycle when DOUT is not down.
This is a performance optimization which allows to query the sensor with
a higher frequency.
Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions