platform/chrome: cros_ec_sensorhub: Add the number of sensors in sensorhub
authorGwendal Grignou <gwendal@chromium.org>
Fri, 27 Mar 2020 22:34:32 +0000 (15:34 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Sat, 28 Mar 2020 21:04:32 +0000 (22:04 +0100)
commitcee416a347440628762db2257ff921ccf9f66923
tree5c9bc2d7f5ec0b3016bcfecb444c56350481d327
parentb2057c64017e96f1f9471fe49569508711f7663f
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>
drivers/platform/chrome/cros_ec_sensorhub.c
include/linux/platform_data/cros_ec_sensorhub.h