aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/cros_ec_sensorhub.h
blob: bef7ffc7fce10703b082098f9092b9c9016113b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Chrome OS EC MEMS Sensor Hub driver.
 *
 * Copyright 2019 Google LLC
 */

#ifndef __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H
#define __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H

#include <linux/platform_data/cros_ec_commands.h>

/**
 * struct cros_ec_sensor_platform - ChromeOS EC sensor platform information.
 * @sensor_num: Id of the sensor, as reported by the EC.
 */
struct cros_ec_sensor_platform {
	u8 sensor_num;
};

/**
 * struct cros_ec_sensorhub - Sensor Hub device data.
 *
 * @ec: Embedded Controller where the hub is located.
 */
struct cros_ec_sensorhub {
	struct cros_ec_dev *ec;
};

#endif   /* __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H */