Skip to content

Commit 3df613e

Browse files
Heikki Krogerusgregkh
authored andcommitted
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 <heikki.krogerus@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d9e3d89 commit 3df613e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/usb/pd_vdo.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#define CMD_EXIT_MODE 5
6666
#define CMD_ATTENTION 6
6767

68-
#define VDO_CMD_VENDOR(x) (((10 + (x)) & 0x1f))
68+
#define VDO_CMD_VENDOR(x) (((0x10 + (x)) & 0x1f))
6969

7070
/* ChromeOS specific commands */
7171
#define VDO_CMD_VERSION VDO_CMD_VENDOR(0)

0 commit comments

Comments
 (0)