Skip to content

Commit

Permalink
staging: typec: pd: Document struct pd_message
Browse files Browse the repository at this point in the history
struct pd_message is the format of a PD message as seen on the wire.

Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
groeck authored and gregkh committed Sep 18, 2017
1 parent 98076fa commit 70cd90b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/staging/typec/pd.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ static inline unsigned int pd_header_msgid_le(__le16 header)

#define PD_MAX_PAYLOAD 7

/**
* struct pd_message - PD message as seen on wire
* @header: PD message header
* @payload: PD message payload
*/
struct pd_message {
__le16 header;
__le32 payload[PD_MAX_PAYLOAD];
Expand Down

0 comments on commit 70cd90b

Please sign in to comment.