summaryrefslogtreecommitdiff
path: root/driver/tcpm/anx7688.c
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2020-05-13 07:31:21 -0600
committerCommit Bot <commit-bot@chromium.org>2020-05-15 18:05:27 +0000
commit887e071cd0e00d2c41324364599c3099f25bebd3 (patch)
tree548e22db552aea8d8fa0eec87fd2a3b8e7f6ced2 /driver/tcpm/anx7688.c
parent7e70fc5301b425ce8e0265b6e7ebb3cf9e7109bb (diff)
downloadchrome-ec-887e071cd0e00d2c41324364599c3099f25bebd3.tar.gz
tcpc: change name of get_vbus_level to check_vbus_level
this is to add near future functionality to allow not only the current PRESENT range check but to add Save0V range checking as well, for platforms that allow for this. This just lays the framework and is functionally equivalent. BUG=none BRANCH=none TEST=verify basic USB functionality Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I1eb3411bc3aa9b792c9b97799e1721e5cb229f64 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2199036 Tested-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'driver/tcpm/anx7688.c')
-rw-r--r--driver/tcpm/anx7688.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/tcpm/anx7688.c b/driver/tcpm/anx7688.c
index 8b5a70cf73..a4baad42c3 100644
--- a/driver/tcpm/anx7688.c
+++ b/driver/tcpm/anx7688.c
@@ -171,7 +171,7 @@ static int anx7688_mux_set(const struct usb_mux *me, mux_state_t mux_state)
}
#ifdef CONFIG_USB_PD_VBUS_DETECT_TCPC
-static int anx7688_tcpm_get_vbus_level(int port)
+static bool anx7688_tcpm_check_vbus_level(int port, enum vbus_level level)
{
int reg = 0;
@@ -191,7 +191,7 @@ const struct tcpm_drv anx7688_tcpm_drv = {
.release = &anx7688_release,
.get_cc = &tcpci_tcpm_get_cc,
#ifdef CONFIG_USB_PD_VBUS_DETECT_TCPC
- .get_vbus_level = &anx7688_tcpm_get_vbus_level,
+ .check_vbus_level = &anx7688_tcpm_check_vbus_level,
#endif
.select_rp_value = &tcpci_tcpm_select_rp_value,
.set_cc = &tcpci_tcpm_set_cc,