1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Chrome OS EC MEMS Sensor Hub driver.
4  *
5  * Copyright 2019 Google LLC
6  */
7 
8 #ifndef __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H
9 #define __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H
10 
11 #include <linux/platform_data/cros_ec_commands.h>
12 
13 /**
14  * struct cros_ec_sensor_platform - ChromeOS EC sensor platform information.
15  * @sensor_num: Id of the sensor, as reported by the EC.
16  */
17 struct cros_ec_sensor_platform {
18 	u8 sensor_num;
19 };
20 
21 /**
22  * struct cros_ec_sensorhub - Sensor Hub device data.
23  *
24  * @ec: Embedded Controller where the hub is located.
25  * @sensor_num: Number of MEMS sensors present in the EC.
26  */
27 struct cros_ec_sensorhub {
28 	struct cros_ec_dev *ec;
29 	int sensor_num;
30 };
31 
32 #endif   /* __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H */
33