iio: cros_ec: Add lid angle driver
authorGwendal Grignou <gwendal@chromium.org>
Fri, 17 May 2019 23:38:56 +0000 (16:38 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 25 Jun 2019 13:28:06 +0000 (15:28 +0200)
commit0451cc8ce272f50f9fb6569b0ecdedee6e997cea
tree8483062c366d07e9f955ffefda661ca361d27bd7
parent1d333ef3d599026897fb11b4f89f9f8f30838139
iio: cros_ec: Add lid angle driver

Add a IIO driver that reports the angle between the lid and the base for
ChromeOS convertible device.

Tested on eve with ToT EC firmware.
Check driver is loaded and lid angle is correct.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/iio/common/cros_ec_sensors/Kconfig
drivers/iio/common/cros_ec_sensors/Makefile
drivers/iio/common/cros_ec_sensors/cros_ec_lid_angle.c [new file with mode: 0644]