Re: [PATCH v4 03/17] platform/mfd:iio: cros_ec: Register sensor through sensorhub

From: Lee Jones
Date: Mon Nov 11 2019 - 06:43:41 EST


On Tue, 05 Nov 2019, Gwendal Grignou wrote:

> - Remove duplicate code in mfd, since mfd just register
> 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@xxxxxxxxxxxx>
> ---
> No changes in v4, v3.
> Changes in v2:
> - Remove unerelated changes.
> - Remove ec presence test in iio driver, done in cros_ec_sensorhub.
>
> drivers/iio/accel/cros_ec_accel_legacy.c | 6 -
> .../common/cros_ec_sensors/cros_ec_sensors.c | 6 -
> .../cros_ec_sensors/cros_ec_sensors_core.c | 4 +-
> drivers/iio/light/cros_ec_light_prox.c | 6 -
> drivers/mfd/cros_ec_dev.c | 203 ++----------------

Acked-by: Lee Jones <lee.jones@xxxxxxxxxx>

--
Lee Jones [æçæ]
Linaro Services Technical Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog