aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorGregor Riepl <[email protected]>2020-02-20 22:20:53 +0100
committerJonathan Cameron <[email protected]>2020-03-08 17:28:41 +0000
commit070bd30a518a106c8bb3c8a71de1db7f714bed02 (patch)
tree6dc51c964eca8d13186a54bc4aa286268e5da603 /tools/perf/scripts/python/net_dropmonitor.py
parent317d4bcca76956d177ae584d95482a329225ff03 (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/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions