From 887e071cd0e00d2c41324364599c3099f25bebd3 Mon Sep 17 00:00:00 2001 From: Denis Brockus Date: Wed, 13 May 2020 07:31:21 -0600 Subject: 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 Change-Id: I1eb3411bc3aa9b792c9b97799e1721e5cb229f64 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2199036 Tested-by: Denis Brockus Reviewed-by: Diana Z Commit-Queue: Denis Brockus Auto-Submit: Denis Brockus --- board/kodama/board.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'board/kodama') diff --git a/board/kodama/board.c b/board/kodama/board.c index fdb40d32b8..2fab43d3ac 100644 --- a/board/kodama/board.c +++ b/board/kodama/board.c @@ -216,7 +216,9 @@ int extpower_is_present(void) if (board_vbus_source_enabled(CHARGE_PORT_USB_C)) usb_c_extpower_present = 0; else - usb_c_extpower_present = tcpm_get_vbus_level(CHARGE_PORT_USB_C); + usb_c_extpower_present = tcpm_check_vbus_level( + CHARGE_PORT_USB_C, + VBUS_PRESENT); return usb_c_extpower_present; } -- cgit v1.2.1