summaryrefslogtreecommitdiff
path: root/drivers/staging/typec
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-09-11 20:32:06 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-18 10:58:31 +0200
commit70cd90be33004ce700f762e85e4919f41af0ca48 (patch)
tree825ddef3a4598d2c0d00baacdffe9b205582fd1f /drivers/staging/typec
parent98076fa64a05dd2bda3a9f38e171bade15ab507d (diff)
staging: typec: pd: Document struct pd_message
struct pd_message is the format of a PD message as seen on the wire. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/typec')
-rw-r--r--drivers/staging/typec/pd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/typec/pd.h b/drivers/staging/typec/pd.h
index 30b32ad72acd..e00051ced806 100644
--- a/drivers/staging/typec/pd.h
+++ b/drivers/staging/typec/pd.h
@@ -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];