summaryrefslogtreecommitdiff
path: root/board/brya/usbc_config.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2021-06-18 11:25:30 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-18 21:44:49 +0000
commitbbd967de266e4c615d3e34ed8ae5425f175bf7e0 (patch)
treebd057c18f3e82b75360210147f410389285fcb33 /board/brya/usbc_config.c
parent257acda4b812d01687710ac2565e60e8df203eb2 (diff)
downloadchrome-ec-bbd967de266e4c615d3e34ed8ae5425f175bf7e0.tar.gz
bb_retimer: cleanup: Change the power handler func name & params
Changed the power handler function name from bb_retimer_power_handle() to bb_retimer_power_enable() and on_off param to enable. BUG=none BRANCH=none TEST=make buildall -j Change-Id: Ifad4c71a5d76b4841ea369a991160e221c051ec5 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2973375 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board/brya/usbc_config.c')
-rw-r--r--board/brya/usbc_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/brya/usbc_config.c b/board/brya/usbc_config.c
index d24143c40b..ddad81f7da 100644
--- a/board/brya/usbc_config.c
+++ b/board/brya/usbc_config.c
@@ -187,7 +187,7 @@ void config_usb_db_type(void)
CPRINTS("Configured USB DB type number is %d", db_type);
}
-__override int bb_retimer_power_handle(const struct usb_mux *me, int on_off)
+__override int bb_retimer_power_enable(const struct usb_mux *me, bool enable)
{
enum ioex_signal rst_signal;
@@ -207,7 +207,7 @@ __override int bb_retimer_power_handle(const struct usb_mux *me, int on_off)
* so we only need to sequence reset.
*/
- if (on_off) {
+ if (enable) {
/*
* Tpw, minimum time from VCC to RESET_N de-assertion is 100us.
* For boards that don't provide a load switch control, the