Driver for 20-bit ALS and UV B sensor with I2C interface exposing the following API: in_uvindex_input in_illuminance_raw in_illuminance_scale in_illuminance_scale_available in_intensity_uv_raw in_intensity_uv_scale in_intensity_uv_scale_available integration_time integration_time_available v2: (thanks Jonathan) * remove duplicate new lines as suggested * split write functions as suggested * reformatting error path as suggested * drop _mode enum and use register address directly instead * the intensity_uv channel now reports in SI units: W/m^2 (as suggested), the illuminance channel reports in lux (after application of _SCALE) * add unrelated patch to fix a typo in documentation Peter Meerwald-Stadler (2): iio: light: Add driver for IDT ZOPT2201 ambient light and UVB sensor Documentation: iio: Fix typo Documentation/ABI/testing/sysfs-bus-iio | 2 +- drivers/iio/light/Kconfig | 10 + drivers/iio/light/Makefile | 1 + drivers/iio/light/zopt2201.c | 568 ++++++++++++++++++++++++++++++++ 4 files changed, 580 insertions(+), 1 deletion(-) create mode 100644 drivers/iio/light/zopt2201.c -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html