diff options
| author | Heikki Krogerus <[email protected]> | 2017-12-18 17:03:03 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-12-19 11:47:23 +0100 |
| commit | 3df613ec12f71f00dad545a9df75573951e5c59f (patch) | |
| tree | fe1470119a39b071e636d2eb75baf4685a186598 /include/linux | |
| parent | d9e3d899bc7a852d44b3305ed49799fbf090e756 (diff) | |
usb: pd: fix the offset for SVID specific commands
The SVID specific commands in the Command field of the
Structured VDM Header start from 16, not 10. Changing the
value used in VDO_CMD_VENDOR() macro from 10 to 0x10.
Signed-off-by: Heikki Krogerus <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb/pd_vdo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/pd_vdo.h b/include/linux/usb/pd_vdo.h index d92259f8de0a..2b64d23ace5c 100644 --- a/include/linux/usb/pd_vdo.h +++ b/include/linux/usb/pd_vdo.h @@ -65,7 +65,7 @@ #define CMD_EXIT_MODE 5 #define CMD_ATTENTION 6 -#define VDO_CMD_VENDOR(x) (((10 + (x)) & 0x1f)) +#define VDO_CMD_VENDOR(x) (((0x10 + (x)) & 0x1f)) /* ChromeOS specific commands */ #define VDO_CMD_VERSION VDO_CMD_VENDOR(0) |