iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 1 Aug 2016 09:54:35 +0000 (11:54 +0200)
committerJonathan Cameron <jic23@kernel.org>
Tue, 25 Oct 2016 17:20:05 +0000 (18:20 +0100)
commit974e6f02e27e1b46c6c5e600e70ced25079f73eb
treefde95884c3df855863a55e44c1c2eff6c2a3d9ec
parent1001354ca34179f3db924eb66672442a173147dc
iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.

Add the core functions to be able to support the sensors attached behind
the ChromeOS Embedded Controller and used by other IIO cros-ec sensor
drivers.

The cros_ec_sensor_core driver matches with current driver in ChromeOS
4.4 tree, so it includes all the fixes at the moment. The support for
this driver was made by Gwendal Grignou. The original patch and all the
fixes has been squashed and rebased on top of mainline.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Guenter Roeck <groeck@chromium.org>
[eballetbo: split, squash and rebase on top of mainline the patches
found in ChromeOS tree]
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio-cros-ec [new file with mode: 0644]
drivers/iio/common/Kconfig
drivers/iio/common/Makefile
drivers/iio/common/cros_ec_sensors/Kconfig [new file with mode: 0644]
drivers/iio/common/cros_ec_sensors/Makefile [new file with mode: 0644]
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c [new file with mode: 0644]
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h [new file with mode: 0644]
include/linux/mfd/cros_ec.h
include/linux/mfd/cros_ec_commands.h