Re: [PATCH v2 02/18] mfd: cros_ec: Add sensor_count and make check_features public

From: Lee Jones
Date: Fri Nov 01 2019 - 05:00:10 EST


On Sun, 20 Oct 2019, Gwendal Grignou wrote:

> Add a new function to return the number of MEMS sensors available in a
> ChromeOS Embedded Controller.
> It uses MOTIONSENSE_CMD_DUMP if available or a specific memory map ACPI
> registers to find out.
>
> Also, make check_features public as it can be useful for other drivers
> to know what the Embedded Controller supports.
>
> Signed-off-by: Gwendal Grignou <gwendal@xxxxxxxxxxxx>
> ---
> Changes in v2:
> Fix spelling in commit message.
> Cleanup the case where DUMP command is not supported.
> Move code from mfd to platform/chrome/
>
> drivers/mfd/cros_ec_dev.c | 32 ------
> drivers/platform/chrome/cros_ec_proto.c | 116 ++++++++++++++++++++
> include/linux/platform_data/cros_ec_proto.h | 5 +
> 3 files changed, 121 insertions(+), 32 deletions(-)

For my own reference:
Acked-for-MFD-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