diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-09-16 12:41:15 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-21 22:03:07 +0000 |
commit | cb4a02d5e0358631242ada9178bbc6d5b8367340 (patch) | |
tree | 7fc8dae92bdc09f0453086aa39d10e932e34e49f /test/usb_pd_console.c | |
parent | 3e5d154aaa0c8e71953e1227ffd760f61efe8135 (diff) | |
download | chrome-ec-cb4a02d5e0358631242ada9178bbc6d5b8367340.tar.gz |
TCPMv2: Move DPM requests to public API
It is safe (atomic bit ops) and will soon be necessary (new host
commands) to send DPM requests from outside the PD tasks. Rename
pe_dpm_request to pd_dpm_request and move the declarations into usb_pd.h
to reflect this.
BUG=b:168030639
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: Ied43e9f6973a3172b98090cc068a607257dce21b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2415068
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'test/usb_pd_console.c')
-rw-r--r-- | test/usb_pd_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/usb_pd_console.c b/test/usb_pd_console.c index e7649e3d32..800eae7b3d 100644 --- a/test/usb_pd_console.c +++ b/test/usb_pd_console.c @@ -23,7 +23,7 @@ int remote_flashing(int argc, char **argv); static enum try_src_override_t try_src_override; static int test_port; -static enum pe_dpm_request request; +static enum pd_dpm_request request; static int max_volt; static int comm_enable; static int dev_info; @@ -52,7 +52,7 @@ void pe_send_vdm(int port, uint32_t vid, int cmd, const uint32_t *data, vdm_data[i] = data[i]; } -void pe_dpm_request(int port, enum pe_dpm_request req) +void pd_dpm_request(int port, enum pd_dpm_request req) { test_port = port; request = req; |