From 8c3f625e104a9ae8fd44f42974f256690cf28f7f Mon Sep 17 00:00:00 2001 From: Benson Leung Date: Thu, 12 Dec 2019 10:18:45 -0800 Subject: usb_pd: Rename "Externally powered" to "Unconstrained Power" This was changed in PD 2.0 years ago (via ECN authored by our own David Schneider), but our codebase still refers to BIT 27 of the Fixed PDO as "Externally powered" instead of "Unconstrained Power". This will search and replace all instances of "Externally powered" when it refers to BIT 27, as well as function names, other internal representations of that property, strings, and comments. seds: s/PD_FLAGS_PARTNER_EXTPOWER/PD_FLAGS_PARTNER_UNCONSTR/g s/partner_extpower/partner_unconstrained/g s/externally powered/unconstrained/g Some others too. Signed-off-by: Benson Leung BUG=chromium:1030990 TEST=Codebase builds clean. No functional change, except for the property shows up in ectool as "Unconstrained power" now. Change-Id: I5ececa03f29eb31057be3d0ad5311117093bc6da Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1956147 Reviewed-by: Aseda Aboagye Commit-Queue: Benson Leung Tested-by: Benson Leung --- board/coffeecake/usb_pd_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/coffeecake') diff --git a/board/coffeecake/usb_pd_policy.c b/board/coffeecake/usb_pd_policy.c index 660e45e90e..89f6bd28ad 100644 --- a/board/coffeecake/usb_pd_policy.c +++ b/board/coffeecake/usb_pd_policy.c @@ -24,7 +24,7 @@ #define CPRINTS(format, args...) cprints(CC_USBPD, format, ## args) #define PDO_FIXED_FLAGS_EXT (PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP |\ - PDO_FIXED_COMM_CAP | PDO_FIXED_EXTERNAL) + PDO_FIXED_COMM_CAP | PDO_FIXED_UNCONSTRAINED) #define PDO_FIXED_FLAGS (PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP |\ PDO_FIXED_COMM_CAP) -- cgit v1.2.1