From fd709edf12dfdfb7ee4cf443c4df8bd1461e7b41 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 16 Oct 2014 13:58:40 -0700 Subject: [PATCH] pd: fix VDM commands numbering In structured VDMs, the ACK command is b01 and the NAK command is b10, update the defines accordingly. Signed-off-by: Vincent Palatin BRANCH=samus BUG=none TEST=interoperability test with another power source. Change-Id: I8050ae262dc5ab538d973f802111c2874358ea37 Reviewed-on: https://chromium-review.googlesource.com/223725 Tested-by: Vincent Palatin Reviewed-by: Todd Broch Reviewed-by: Alec Berg Commit-Queue: Vincent Palatin --- include/usb_pd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/usb_pd.h b/include/usb_pd.h index a6acd834b8..99e0271a58 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -192,8 +192,8 @@ struct pd_policy { #define VDO_CMDT_MASK VDO_CMDT(0x3) #define CMDT_INIT 0 -#define CMDT_RSP_NAK 1 -#define CMDT_RSP_ACK 2 +#define CMDT_RSP_ACK 1 +#define CMDT_RSP_NAK 2 #define CMDT_RSP_BUSY 3