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

Lee Jones
2019-11-11T11:43:41Z

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@chromium.org>
> ---
> 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@linaro.org>

--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog