aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/cros_ec.h2
-rw-r--r--include/linux/mfd/cros_ec_commands.h3
-rw-r--r--include/linux/platform_data/atmel_mxt_ts.h31
3 files changed, 5 insertions, 31 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index c61535979b8f..2d4e23c9ea0a 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -183,6 +183,7 @@ struct cros_ec_debugfs;
183 * @ec_dev: cros_ec_device structure to talk to the physical device 183 * @ec_dev: cros_ec_device structure to talk to the physical device
184 * @dev: pointer to the platform device 184 * @dev: pointer to the platform device
185 * @debug_info: cros_ec_debugfs structure for debugging information 185 * @debug_info: cros_ec_debugfs structure for debugging information
186 * @has_kb_wake_angle: true if at least 2 accelerometer are connected to the EC.
186 * @cmd_offset: offset to apply for each command. 187 * @cmd_offset: offset to apply for each command.
187 */ 188 */
188struct cros_ec_dev { 189struct cros_ec_dev {
@@ -191,6 +192,7 @@ struct cros_ec_dev {
191 struct cros_ec_device *ec_dev; 192 struct cros_ec_device *ec_dev;
192 struct device *dev; 193 struct device *dev;
193 struct cros_ec_debugfs *debug_info; 194 struct cros_ec_debugfs *debug_info;
195 bool has_kb_wake_angle;
194 u16 cmd_offset; 196 u16 cmd_offset;
195 u32 features[2]; 197 u32 features[2];
196}; 198};
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h
index 2b96e630e3b6..f2edd9969b40 100644
--- a/include/linux/mfd/cros_ec_commands.h
+++ b/include/linux/mfd/cros_ec_commands.h
@@ -2948,6 +2948,9 @@ struct ec_response_usb_pd_control_v1 {
2948 2948
2949#define EC_CMD_USB_PD_PORTS 0x102 2949#define EC_CMD_USB_PD_PORTS 0x102
2950 2950
2951/* Maximum number of PD ports on a device, num_ports will be <= this */
2952#define EC_USB_PD_MAX_PORTS 8
2953
2951struct ec_response_usb_pd_ports { 2954struct ec_response_usb_pd_ports {
2952 uint8_t num_ports; 2955 uint8_t num_ports;
2953} __packed; 2956} __packed;
diff --git a/include/linux/platform_data/atmel_mxt_ts.h b/include/linux/platform_data/atmel_mxt_ts.h
deleted file mode 100644
index 695035a8d7fb..000000000000
--- a/include/linux/platform_data/atmel_mxt_ts.h
+++ /dev/null
@@ -1,31 +0,0 @@
1/*
2 * Atmel maXTouch Touchscreen driver
3 *
4 * Copyright (C) 2010 Samsung Electronics Co.Ltd
5 * Author: Joonyoung Shim <jy0922.shim@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 */
12
13#ifndef __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H
14#define __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H
15
16#include <linux/types.h>
17
18enum mxt_suspend_mode {
19 MXT_SUSPEND_DEEP_SLEEP = 0,
20 MXT_SUSPEND_T9_CTRL = 1,
21};
22
23/* The platform data for the Atmel maXTouch touchscreen driver */
24struct mxt_platform_data {
25 unsigned long irqflags;
26 u8 t19_num_keys;
27 const unsigned int *t19_keymap;
28 enum mxt_suspend_mode suspend_mode;
29};
30
31#endif /* __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H */