iio / platform: cros_ec: Add cros-ec-sensorhub driver
authorGwendal Grignou <gwendal@chromium.org>
Tue, 19 Nov 2019 12:45:45 +0000 (13:45 +0100)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 21 Nov 2019 10:23:14 +0000 (11:23 +0100)
commit53067471188c4066fc393ab892d0a74482eac000
treeb9210602cf785a3db497224185445e6dcfd20027
parenta16b2e28190255a0729c27902fa88fb8fff39bb0
iio / platform: cros_ec: Add cros-ec-sensorhub driver

Similar to HID sensor stack, the new driver sits between cros-ec-dev
and the IIO device drivers:

The EC based IIO device topology would be:

iio:device1 ->
   ...0/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.6.auto/
                                            cros-ec-sensorhub.7.auto/
                                            cros-ec-accel.15.auto/
                                            iio:device1

It will be expanded to control EC sensor FIFO.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
[Fix "unknown type name 'uint32_t'" type errors]
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/iio/common/cros_ec_sensors/Kconfig
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_sensorhub.c [new file with mode: 0644]
include/linux/platform_data/cros_ec_sensorhub.h [new file with mode: 0644]