Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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 */
17struct 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 */
26struct cros_ec_sensorhub {
27 struct cros_ec_dev *ec;
28};
29
30#endif /* __LINUX_PLATFORM_DATA_CROS_EC_SENSORHUB_H */