]> git.baikalelectronics.ru Git - kernel.git/commit
iio: acpi: Add support for ACPI0008 Ambient Light Sensor
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Sat, 2 May 2015 12:30:57 +0000 (14:30 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 May 2015 19:31:48 +0000 (20:31 +0100)
commita2a2c2bd536887c387936b052795380ea8aba8b0
tree816828eaebcdab83edca6ad1e28d6d22b2920995
parent12967725fdf5b21c6d3af4b4a60558d70242ed89
iio: acpi: Add support for ACPI0008 Ambient Light Sensor

This driver adds the initial support for the ACPI Ambient Light Sensor
as defined in Section 9.2 of the ACPI specification (Revision 5.0) [1].

Sensors complying with the standard are exposed as ACPI devices with
ACPI0008 as hardware ID and provide standard methods by which the OS
can query properties of the ambient light environment the system is
currently operating in.

This driver currently allows only to get the current ambient light
illuminance reading through the _ALI method, but is ready to be
extended extended to handle _ALC, _ALT and _ALP as well.

[1] http://www.acpi.info/DOWNLOADS/ACPIspec50.pdf

Signed-off-by: Martin Liska <marxin.liska@gmail.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/acpi-als.c [new file with mode: 0644]