mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 00:51:51 -04:00
Merge remote-tracking branch 'origin/ib-chrome-platform-cros-ec-sysfs-debugfs-for-v4.17' into working-branch-for-4.17
Merging Enric's cros-ec sysfs and debugfs fixes from immutable branch. Signed-off-by: Benson Leung <bleung@chromium.org>
This commit is contained in:
@@ -183,6 +183,7 @@ struct cros_ec_debugfs;
|
||||
* @ec_dev: cros_ec_device structure to talk to the physical device
|
||||
* @dev: pointer to the platform device
|
||||
* @debug_info: cros_ec_debugfs structure for debugging information
|
||||
* @has_kb_wake_angle: true if at least 2 accelerometer are connected to the EC.
|
||||
* @cmd_offset: offset to apply for each command.
|
||||
*/
|
||||
struct cros_ec_dev {
|
||||
@@ -191,6 +192,7 @@ struct cros_ec_dev {
|
||||
struct cros_ec_device *ec_dev;
|
||||
struct device *dev;
|
||||
struct cros_ec_debugfs *debug_info;
|
||||
bool has_kb_wake_angle;
|
||||
u16 cmd_offset;
|
||||
u32 features[2];
|
||||
};
|
||||
|
||||
@@ -2948,6 +2948,9 @@ struct ec_response_usb_pd_control_v1 {
|
||||
|
||||
#define EC_CMD_USB_PD_PORTS 0x102
|
||||
|
||||
/* Maximum number of PD ports on a device, num_ports will be <= this */
|
||||
#define EC_USB_PD_MAX_PORTS 8
|
||||
|
||||
struct ec_response_usb_pd_ports {
|
||||
uint8_t num_ports;
|
||||
} __packed;
|
||||
|
||||
Reference in New Issue
Block a user