summaryrefslogtreecommitdiff
path: root/drivers/iio/common/cros_ec_sensors/Kconfig
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2019-05-17 16:38:56 -0700
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-06-25 15:28:06 +0200
commit0451cc8ce272f50f9fb6569b0ecdedee6e997cea (patch)
tree8483062c366d07e9f955ffefda661ca361d27bd7 /drivers/iio/common/cros_ec_sensors/Kconfig
parent1d333ef3d599026897fb11b4f89f9f8f30838139 (diff)
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>
Diffstat (limited to 'drivers/iio/common/cros_ec_sensors/Kconfig')
-rw-r--r--drivers/iio/common/cros_ec_sensors/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/iio/common/cros_ec_sensors/Kconfig b/drivers/iio/common/cros_ec_sensors/Kconfig
index 135f6825903f..aacc2ab9c34f 100644
--- a/drivers/iio/common/cros_ec_sensors/Kconfig
+++ b/drivers/iio/common/cros_ec_sensors/Kconfig
@@ -20,3 +20,12 @@ config IIO_CROS_EC_SENSORS
Accelerometers, Gyroscope and Magnetometer that are
presented by the ChromeOS EC Sensor hub.
Creates an IIO device for each functions.
+
+config IIO_CROS_EC_SENSORS_LID_ANGLE
+ tristate "ChromeOS EC Sensor for lid angle"
+ depends on IIO_CROS_EC_SENSORS_CORE
+ help
+ Module to report the angle between lid and base for some
+ convertible devices.
+ This module is loaded when the EC can calculate the angle between the base
+ and the lid.