diff options
author | Peter Marheine <pmarheine@chromium.org> | 2020-07-01 16:36:48 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-06 03:40:27 +0000 |
commit | 3f01ed23cae2dd07bc8d9ec69f5a15aa9afaefa3 (patch) | |
tree | 755252b65e1941fc3b335dc83faa1cacb9bb0c07 /include/usb_pd_tcpm.h | |
parent | 443d8cbb9e682302f665aef737bd746f19e5dcc1 (diff) | |
download | chrome-ec-3f01ed23cae2dd07bc8d9ec69f5a15aa9afaefa3.tar.gz |
usbc: only try to use ppc_set_frs_enable if it exists
The driver function to set FRS enable only exists if
CONFIG_USB_PD_FRS_PPC is enabled, so we must also make its callers
conditional in the same way. For consistency, also revise the TCPC
FRS code paths to be conditional.
BUG=b:146393213
BRANCH=None
TEST=make buildall
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: I3fb14c711dd2abdf6ef77d469b2103f37daac182
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2276125
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r-- | include/usb_pd_tcpm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index fb46d055e7..26131214ba 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -387,6 +387,7 @@ struct tcpm_drv { int (*enter_low_power_mode)(int port); #endif +#ifdef CONFIG_USB_PD_FRS_TCPC /** * Enable/Disable TCPC FRS detection * @@ -396,6 +397,7 @@ struct tcpm_drv { * @return EC_SUCCESS or error */ int (*set_frs_enable)(int port, int enable); +#endif /** * Handle TCPCI Faults |