aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStefan Brüns <[email protected]>2017-09-24 23:59:19 +0200
committerJonathan Cameron <[email protected]>2017-10-09 20:50:15 +0100
commite794bf6751a0376a459ae1659a1646652b198cad (patch)
treeadb2e7706adae36b19e01896a472452a25705e11 /tools/perf/scripts/python
parentdf698c0402eaa2c949344c45f42a7d85e9506533 (diff)
iio: light: vl6180: Cleanup als_gain lookup, avoid register readback
Instead of manually iterating the array of allowed gain values, use find_closest. Storing the current gain setting avoids accessing the hardware on each query. Signed-off-by: Stefan Brüns <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions