kernel_optimize_test/drivers/iio
Gregor Riepl 070bd30a51 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 <xc-racer2@live.ca>
Signed-off-by: Gregor Riepl <onitake@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-03-08 17:28:41 +00:00
..
accel iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
adc staging: iio: adc: ad7192: move out of staging 2020-03-08 17:28:33 +00:00
afe
amplifiers iio: amplifiers: hmc425a: Add support for HMC425A attenuator 2020-03-08 17:28:21 +00:00
buffer
chemical iio: chemical: atlas-sensor: add DO-SM module support 2020-03-08 17:28:40 +00:00
common iio: st_sensors: handle memory allocation failure to fix null pointer dereference 2020-02-14 12:08:22 +00:00
dac iio: dac: ltc2632: remove some unused defines 2020-02-14 15:06:24 +00:00
dummy
frequency
gyro iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
health
humidity
imu iio: imu: inv_mpu6050: temperature only work with accel/gyro 2020-03-08 17:28:40 +00:00
light iio: light: Simplify the current to lux LUT 2020-03-08 17:28:41 +00:00
magnetometer iio: magnetometer: ak8975: Convert to use device_get_match_data() 2020-01-18 11:43:17 +00:00
multiplexer
orientation
potentiometer
potentiostat
pressure chrome platform changes for 5.6 2020-02-04 07:17:41 +00:00
proximity iio: srf04: add power management feature 2020-02-14 12:08:23 +00:00
resolver
temperature
trigger iio: trigger: stm32-timer: enable clock when in master mode 2020-03-08 17:28:35 +00:00
iio_core_trigger.h
iio_core.h
industrialio-buffer.c Merge 5.5-rc7 into staging-next 2020-01-22 09:05:34 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Handle 'dB' suffix in core 2020-02-21 10:02:16 +00:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile