Skip to contentSkip to conversation

iio: acpi: Add ACPI0008 ALS driver

PATCH Superseded Marek Vasut 1 participant 1 message Jan 26, 2013

Subsystems (3)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
 drivers/staging/iio/light/Kconfig    |    9 +
 drivers/staging/iio/light/Makefile   |    1 +
 drivers/staging/iio/light/acpi-als.c |  318 ++++++++++++++++++++++++++++++++++
 3 files changed, 328 insertions(+)
 create mode 100644 drivers/staging/iio/light/acpi-als.c

V2: Fix the channel mask, so it's really reading RAW data.

drivers/staging/iio/light/Kconfig +9 -0
index 4bed30e..c857c26 100644
@@ -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
index 141af1e..13090e6 100644
@@ -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 +318 -0

318 lines not on this page · raw message

Signature · 1 line
1.7.10.4