diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-04-27 18:08:21 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-04-29 20:44:41 +0000 |
commit | 5d28e776c99ed3d4ceda0bfefe0920ca658b8241 (patch) | |
tree | 2b1dbe49fefdc87e58a816805f22d48d8599f180 /chip/stm32/usb_pd_phy.c | |
parent | 0086f8a7802fa9faddc2fda9c348fa88a47c291e (diff) | |
download | chrome-ec-5d28e776c99ed3d4ceda0bfefe0920ca658b8241.tar.gz |
pd: cleanup PD receive error enum
Cleanup PD receive error enum by including RX in name since
we will have a different enum for TX errors.
BUG=none
BRANCH=none
TEST=make -j buildall
Change-Id: I355092e0e73a022acb4a92736374cd2289d324bf
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/267670
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32/usb_pd_phy.c')
-rw-r--r-- | chip/stm32/usb_pd_phy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/usb_pd_phy.c b/chip/stm32/usb_pd_phy.c index 6c53281346..4fd495d769 100644 --- a/chip/stm32/usb_pd_phy.c +++ b/chip/stm32/usb_pd_phy.c @@ -180,9 +180,9 @@ int pd_find_preamble(int port) if (all == 0x36db6db6) return bit - 1; /* should be SYNC-1 */ if (all == 0xF33F3F3F) - return PD_ERR_HARD_RESET; /* got HARD-RESET */ + return PD_RX_ERR_HARD_RESET; /* got HARD-RESET */ if (all == 0x3c7fe0ff) - return PD_ERR_CABLE_RESET; /* got CABLE-RESET */ + return PD_RX_ERR_CABLE_RESET; /* got CABLE-RESET */ } return -1; } |