History

usb: typec: Add parameter for the VDO to typec_altmode_enter()

Enter Mode Command may contain one VDO.

Heikki Krogerus committed 6 years ago

Commit 8face9a1 parent cf2f58f5 files · +14 −11Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/usb/typec_altmode.h+2−2
@@ -55,7 +55,7 @@ static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) · 54 unmodified lines
5555 * @activate: User callback for Enter/Exit Mode
5656 */
5757 struct typec_altmode_ops {
58− int (*enter)(struct typec_altmode *altmode);
58+ int (*enter)(struct typec_altmode *altmode, u32 *vdo);
5959 int (*exit)(struct typec_altmode *altmode);
6060 void (*attention)(struct typec_altmode *altmode, u32 vdo);
6161 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
@@ -65,7 +65,7 @@ struct typec_altmode_ops { · 3 unmodified lines
6565 int (*activate)(struct typec_altmode *altmode, int activate);
6666 };
6767
68−int typec_altmode_enter(struct typec_altmode *altmode);
68+int typec_altmode_enter(struct typec_altmode *altmode, u32 *vdo);
6969 int typec_altmode_exit(struct typec_altmode *altmode);
7070 void typec_altmode_attention(struct typec_altmode *altmode, u32 vdo);
7171 int typec_altmode_vdm(struct typec_altmode *altmode,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t