mfd / platform / iio: cros_ec: Register sensor through sensorhub
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)
commitd60ac88a62df71cb12b2d60d2dae5658fb4eab43
tree10ec08d5f286ee5bcbc610f9e0cdbb5ecc806ea9
parent53067471188c4066fc393ab892d0a74482eac000
mfd / platform / iio: cros_ec: Register sensor through sensorhub

Remove the duplicated code in MFD, since MFD just registers cros-ec-sensorhub
if at least one sensor is present.

Change IIO cros-ec driver to get the pointer to the cros-ec-dev through
cros-ec-sensorhub.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/iio/accel/cros_ec_accel_legacy.c
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
drivers/iio/light/cros_ec_light_prox.c
drivers/mfd/cros_ec_dev.c
include/linux/platform_data/cros_ec_proto.h
include/linux/platform_data/cros_ec_sensorhub.h