aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/pd.h
diff options
context:
space:
mode:
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>2018-04-23 15:10:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-25 14:16:00 +0200
commit2eadc33f40d4c59dd0649f8b6958872d85ad05d7 (patch)
tree82a229c6a0243c9416caa1af2c1324864bfb55f0 /include/linux/usb/pd.h
parentdoc: usb: ci-hdrc-usb2: Add property "mux-controls" (diff)
downloadlinux-dev-2eadc33f40d4c59dd0649f8b6958872d85ad05d7.tar.xz
linux-dev-2eadc33f40d4c59dd0649f8b6958872d85ad05d7.zip
typec: tcpm: Add core support for sink side PPS
This commit adds code to handle requesting of PPS APDOs. Switching between standard PDOs and APDOs, and re-requesting an APDO to modify operating voltage/current will be triggered by an external call into TCPM. Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/pd.h')
-rw-r--r--include/linux/usb/pd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/usb/pd.h b/include/linux/usb/pd.h
index ff359bdfdc7b..09b570feb297 100644
--- a/include/linux/usb/pd.h
+++ b/include/linux/usb/pd.h
@@ -103,8 +103,8 @@ enum pd_ext_msg_type {
(((cnt) & PD_HEADER_CNT_MASK) << PD_HEADER_CNT_SHIFT) | \
((ext_hdr) ? PD_HEADER_EXT_HDR : 0))
-#define PD_HEADER_LE(type, pwr, data, id, cnt) \
- cpu_to_le16(PD_HEADER((type), (pwr), (data), PD_REV20, (id), (cnt), (0)))
+#define PD_HEADER_LE(type, pwr, data, rev, id, cnt) \
+ cpu_to_le16(PD_HEADER((type), (pwr), (data), (rev), (id), (cnt), (0)))
static inline unsigned int pd_header_cnt(u16 header)
{