iio: acpi: Add ACPI0008 ALS driver
Subsystems (3)
PATCH 1/1 iio: acpi: Add ACPI0008 ALS driver
From: Martin Liska <[email protected]>
Add basic implementation of the ACPI0008 Ambient Light Sensor driver. This driver currently supports only the ALI property, yet is ready to be easily extended to handle ALC, ALT, ALP ones as well.
Signed-off-by Martin Liska <[email protected]>
Signed-off-by Marek Vasut <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Zhang Rui <[email protected]>
--- drivers/staging/iio/light/Kconfig | 9 + drivers/staging/iio/light/Makefile | 1 + drivers/staging/iio/light/acpi-als.c | 320 ++++++++++++++++++++++++++++++++++ 3 files changed, 330 insertions(+) create mode 100644 drivers/staging/iio/light/acpi-als.c
NOTE: I want to know your opinion on these attributions. I only did the final
cleanup, so feel free to scratch me from the list. I dont want to parasite on other peoples' hard work here.
drivers/staging/iio/light/Kconfig +9 -0
@@ -50,4 +50,13 @@ config TSL2x7x tmd2672, tsl2772, tmd2772 devices. Provides iio_events and direct access via sysfs. +config ACPI_ALS + tristate "ACPI Ambient Light Sensor" + depends on ACPI + help + Support for the ACPI0008 Ambient Light Sensor. + + This driver can also be built as a module. If so, the module + will be called acpi-als. + endmenu
drivers/staging/iio/light/Makefile +1 -0
@@ -7,3 +7,4 @@ obj-$(CONFIG_SENSORS_ISL29018) += isl29018.o obj-$(CONFIG_SENSORS_ISL29028) += isl29028.o obj-$(CONFIG_TSL2583) += tsl2583.o obj-$(CONFIG_TSL2x7x) += tsl2x7x_core.o +obj-$(CONFIG_ACPI_ALS) += acpi-als.o
drivers/staging/iio/light/acpi-als.c new file +320 -0
320 lines not on this page · raw message
Signature · 1 line
1.7.10.4