diff options
| author | Gregor Riepl <[email protected]> | 2020-02-20 22:20:53 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2020-03-08 17:28:41 +0000 |
| commit | 070bd30a518a106c8bb3c8a71de1db7f714bed02 (patch) | |
| tree | 6dc51c964eca8d13186a54bc4aa286268e5da603 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 317d4bcca76956d177ae584d95482a329225ff03 (diff) | |
iio: light: Simplify the current to lux LUT
The look-up-table for currens to lux is simply specifying
all currents from 5..47 mA, if we add some values for 0..5
we can just select the index for the lux value in an array
from the mA value. Use clamp() to get the value in the
range of values in the array.
Cc: Jonathan Bakker <[email protected]>
Signed-off-by: Gregor Riepl <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions