diff options
author | Ting Shen <phoenixshen@google.com> | 2020-10-28 12:22:17 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-28 09:50:58 +0000 |
commit | c9826aad176be771412d453f37bbc55714afc2b1 (patch) | |
tree | 6209c4a97c4a09e387b2e9b1ba83f898553c55cf /driver/usb_mux/ps8740.c | |
parent | 50d3642d81a7d4ef9aa249d88843c29e52cf3aa3 (diff) | |
download | chrome-ec-c9826aad176be771412d453f37bbc55714afc2b1.tar.gz |
ps874x: fix incorrect parameter name in ps874x_tune_usb_eq
First parameter was incorrectly named 'i2c_addr' in header file,
but it's actually a 'port' in the implementation.
Change the parameter to a usb_mux* to avoid confusion, and also
align with other functions.
BUG=b:170703310
TEST=make
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Ic355b5fd03536423af841be731a93c818d87eb0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2504973
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'driver/usb_mux/ps8740.c')
-rw-r--r-- | driver/usb_mux/ps8740.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/driver/usb_mux/ps8740.c b/driver/usb_mux/ps8740.c index b99c107610..4d03cb5cf3 100644 --- a/driver/usb_mux/ps8740.c +++ b/driver/usb_mux/ps8740.c @@ -106,10 +106,9 @@ static int ps8740_get_mux(const struct usb_mux *me, mux_state_t *mux_state) } /* Tune USB Tx/Rx Equalization */ -int ps8740_tune_usb_eq(int port, uint8_t tx, uint8_t rx) +int ps8740_tune_usb_eq(const struct usb_mux *me, uint8_t tx, uint8_t rx) { int ret; - const struct usb_mux *me = &usb_muxes[port]; ret = ps8740_write(me, PS8740_REG_USB_EQ_TX, tx); ret |= ps8740_write(me, PS8740_REG_USB_EQ_RX, rx); |