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>
This commit is contained in:
Gwendal Grignou 2019-05-17 16:38:56 -07:00 • committed by Enric Balletbo i Serra
commit 0451cc8ce2
3 changed files with 149 additions and 0 deletions