aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-04-13 19:20:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-13 19:20:36 -0400
commitf6811370b9266a3d8a21e27cb5f46751f97df2fb (patch)
tree10b546ed7e900ee4178777007180f87e02f40bcd /include/linux
parentca4e7c51201fc47b2668d58faaa3b46a99d1a233 (diff)
parentc171d3b8a67e08884d915ffbb1dbc475747d7df2 (diff)
Merge tag 'chrome-platform-for-linus-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform
Pull chrome platform updates from Benson Leung: - a series from Dmitry to remove platform data from chromeos_laptop.c, which was the only user of platform data for the atmel_mxt_ts driver. - a series to clean up sysfs and debugfs for cros_ec - other misc cleanups * tag 'chrome-platform-for-linus-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform: (22 commits) platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle platform/chrome: cros_ec_debugfs: Add PD port info to debugfs platform/chrome: cros_ec_debugfs: Use octal permissions '0444' platform/chrome: cros_ec_sysfs: use permission-specific DEVICE_ATTR variants platform/chrome: cros_ec_sysfs: introduce to_cros_ec_dev define. platform/chrome: cros_ec_sysfs: Modify error handling platform/chrome: cros_ec_lpc: Add support for Google devices using custom coreboot firmware platform/chrome: cros_ec_lpc: wake up from s2idle on Chrome EC Input: atmel_mxt_ts - remove platform data support platform/chrome: chromeos_laptop - discard data for unneeded boards platform/chrome: chromeos_laptop - use device properties for Pixel platform/chrome: chromeos_laptop - rely on I2C to set up interrupt trigger platform/chrome: chromeos_laptop - use I2C notifier to create devices platform/chrome: chromeos_laptop - parse DMI IRQ data once platform/chrome: chromeos_laptop - rework i2c peripherals initialization platform/chrome: chromeos_laptop - factor out getting IRQ from DMI platform/chrome: chromeos_laptop - introduce pr_fmt() platform/chrome: chromeos_laptop - stop setting suspend mode for Atmel devices platform/chrome: chromeos_laptop - add SPDX identifier Input: atmel_mxt_ts - switch ChromeOS ACPI devices to generic props ...
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 */