diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2020-03-27 15:34:32 -0700 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2020-03-28 22:04:32 +0100 |
commit | cee416a347440628762db2257ff921ccf9f66923 (patch) | |
tree | 5c9bc2d7f5ec0b3016bcfecb444c56350481d327 /include/linux/platform_data/cros_ec_sensorhub.h | |
parent | b2057c64017e96f1f9471fe49569508711f7663f (diff) | |
download | linux-stable-cee416a347440628762db2257ff921ccf9f66923.tar.gz linux-stable-cee416a347440628762db2257ff921ccf9f66923.tar.bz2 linux-stable-cee416a347440628762db2257ff921ccf9f66923.zip |
platform/chrome: cros_ec_sensorhub: Add the number of sensors in sensorhub
To better manage resources, store the number of sensors reported by
the EC.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'include/linux/platform_data/cros_ec_sensorhub.h')
-rw-r--r-- | include/linux/platform_data/cros_ec_sensorhub.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/cros_ec_sensorhub.h b/include/linux/platform_data/cros_ec_sensorhub.h index bef7ffc7fce1..7e46a47fd642 100644 --- a/include/linux/platform_data/cros_ec_sensorhub.h +++ b/include/linux/platform_data/cros_ec_sensorhub.h @@ -22,9 +22,11 @@ struct cros_ec_sensor_platform { * struct cros_ec_sensorhub - Sensor Hub device data. * * @ec: Embedded Controller where the hub is located. + * @sensor_num: Number of MEMS sensors present in the EC. */ struct cros_ec_sensorhub { struct cros_ec_dev *ec; + int sensor_num; }; #endif /* __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H */ |