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
55 * @activate: User callback for Enter/Exit Mode55 * @activate: User callback for Enter/Exit Mode
56 */56 */
57struct typec_altmode_ops {57struct typec_altmode_ops {
58 int (*enter)(struct typec_altmode *altmode);58 int (*enter)(struct typec_altmode *altmode, u32 *vdo);
59 int (*exit)(struct typec_altmode *altmode);59 int (*exit)(struct typec_altmode *altmode);
60 void (*attention)(struct typec_altmode *altmode, u32 vdo);60 void (*attention)(struct typec_altmode *altmode, u32 vdo);
61 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,61 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
@@ -65,7 +65,7 @@ struct typec_altmode_ops { · 3 unmodified lines
65 int (*activate)(struct typec_altmode *altmode, int activate);65 int (*activate)(struct typec_altmode *altmode, int activate);
66};66};
67 67
68int typec_altmode_enter(struct typec_altmode *altmode);68int typec_altmode_enter(struct typec_altmode *altmode, u32 *vdo);
69int typec_altmode_exit(struct typec_altmode *altmode);69int typec_altmode_exit(struct typec_altmode *altmode);
70void typec_altmode_attention(struct typec_altmode *altmode, u32 vdo);70void typec_altmode_attention(struct typec_altmode *altmode, u32 vdo);
71int typec_altmode_vdm(struct typec_altmode *altmode,71int typec_altmode_vdm(struct typec_altmode *altmode,