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>
This commit is contained in:

committed by
Enric Balletbo i Serra

parent
b2057c6401
commit
cee416a347
@@ -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 */
|
||||
|
Reference in New Issue
Block a user