diff options
| author | Andreas Klinger <ak@it-klinger.de> | 2019-09-09 15:37:48 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-10-22 14:58:07 +0300 |
| commit | 68d8ab3cf1a98e9d296221afdb6433715fd57535 (patch) | |
| tree | 475034390dbcbf1afdef5b6ce0c2d9301def02d9 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 1cd92d42dbfff03bdd209fd6ccd5aec395faa915 (diff) | |
| download | linux-68d8ab3cf1a98e9d296221afdb6433715fd57535.tar.xz | |
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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
