|
|
Log in / Subscribe / Register

iio: cros_ec: Add lid angle driver

From:  Gwendal Grignou <gwendal-AT-chromium.org>
To:  enric.balletbo-AT-collabora.com, bleung-AT-chromium.org, groeck-AT-chromium.org, lee.jones-AT-linaro.org, jic23-AT-kernel.org
Subject:  [PATCH v7 0/2] iio: cros_ec: Add lid angle driver
Date:  Fri, 17 May 2019 16:38:54 -0700
Message-ID:  <20190517233856.155793-1-gwendal@chromium.org>
Cc:  linux-iio-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Gwendal Grignou <gwendal-AT-chromium.org>
Archive-link:  Article

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.

Changes in v7:
- Split the patch in two, as there are no build dependency between
  mfd and iio changes.

Gwendal Grignou (2):
  mfd: cros_ec: Register cros_ec_lid_angle driver when present
  iio: cros_ec: Add lid angle driver

 drivers/iio/common/cros_ec_sensors/Kconfig    |   9 ++
 drivers/iio/common/cros_ec_sensors/Makefile   |   1 +
 .../cros_ec_sensors/cros_ec_lid_angle.c       | 139 ++++++++++++++++++
 drivers/mfd/cros_ec_dev.c                     |  13 +-
 4 files changed, 159 insertions(+), 3 deletions(-)
 create mode 100644 drivers/iio/common/cros_ec_sensors/cros_ec_lid_angle.c

-- 
2.21.0.1020.gf2820cf01a-goog



Copyright © 2019, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds