summaryrefslogtreecommitdiff
path: root/board/tglrvpu_ite
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/tglrvpu_ite
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/tglrvpu_ite')
-rw-r--r--board/tglrvpu_ite/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/tglrvpu_ite/board.c b/board/tglrvpu_ite/board.c
index ba5ca0282d..c81e66b78f 100644
--- a/board/tglrvpu_ite/board.c
+++ b/board/tglrvpu_ite/board.c
@@ -223,7 +223,7 @@ int board_get_version(void)
return board_id | (fab_id << 8);
}
-__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)
{
const struct bb_usb_control *control = &bb_controls[me->usb_port];
@@ -235,7 +235,7 @@ __override int bb_retimer_power_handle(const struct usb_mux *me, int on_off)
GPIO_USB_C1_RETIMER_FORCE_PWR : GPIO_USB_C0_RETIMER_FORCE_PWR;
/* handle retimer's power domain */
- if (on_off) {
+ if (enable) {
/*
* BB retimer NVM can be shared between multiple ports, hence
* lock enabling the retimer until the current retimer request