diff options
author | Denis Brockus <dbrockus@google.com> | 2020-05-13 07:31:21 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-15 18:05:27 +0000 |
commit | 887e071cd0e00d2c41324364599c3099f25bebd3 (patch) | |
tree | 548e22db552aea8d8fa0eec87fd2a3b8e7f6ced2 /driver/bc12 | |
parent | 7e70fc5301b425ce8e0265b6e7ebb3cf9e7109bb (diff) | |
download | chrome-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/bc12')
-rw-r--r-- | driver/bc12/max14637.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/bc12/max14637.c b/driver/bc12/max14637.c index ea5dfa126f..2aab525f00 100644 --- a/driver/bc12/max14637.c +++ b/driver/bc12/max14637.c @@ -129,7 +129,7 @@ static void detect_or_power_down_ic(const int port) int vbus_present; #ifdef CONFIG_USB_PD_VBUS_DETECT_TCPC - vbus_present = tcpm_get_vbus_level(port); + vbus_present = tcpm_check_vbus_level(port, VBUS_PRESENT); #else vbus_present = pd_snk_is_vbus_provided(port); #endif /* !defined(CONFIG_USB_PD_VBUS_DETECT_TCPC) */ |