diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2021-06-18 11:25:30 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-18 21:44:49 +0000 |
commit | bbd967de266e4c615d3e34ed8ae5425f175bf7e0 (patch) | |
tree | bd057c18f3e82b75360210147f410389285fcb33 /board/primus | |
parent | 257acda4b812d01687710ac2565e60e8df203eb2 (diff) | |
download | chrome-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/primus')
-rw-r--r-- | board/primus/usbc_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/primus/usbc_config.c b/board/primus/usbc_config.c index f6770c8f27..190d5fb82b 100644 --- a/board/primus/usbc_config.c +++ b/board/primus/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 |