diff options
Diffstat (limited to 'driver/usb_mux')
-rw-r--r-- | driver/usb_mux/ps8740.c | 3 | ||||
-rw-r--r-- | driver/usb_mux/ps8740.h | 2 | ||||
-rw-r--r-- | driver/usb_mux/ps8743.c | 3 | ||||
-rw-r--r-- | driver/usb_mux/ps8743.h | 2 |
4 files changed, 4 insertions, 6 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); diff --git a/driver/usb_mux/ps8740.h b/driver/usb_mux/ps8740.h index 084719d03e..3a669b5ad9 100644 --- a/driver/usb_mux/ps8740.h +++ b/driver/usb_mux/ps8740.h @@ -84,7 +84,7 @@ #define PS8740_USB_EQ_RX_20_1_DB 0xd0 #define PS8740_USB_EQ_RX_21_3_DB 0xe0 -int ps8740_tune_usb_eq(int i2c_addr, uint8_t tx, uint8_t rx); +int ps8740_tune_usb_eq(const struct usb_mux *me, uint8_t tx, uint8_t rx); int ps8740_write(const struct usb_mux *me, uint8_t reg, uint8_t val); int ps8740_read(const struct usb_mux *me, uint8_t reg, int *val); diff --git a/driver/usb_mux/ps8743.c b/driver/usb_mux/ps8743.c index 3a9eb1ae40..264b79fecc 100644 --- a/driver/usb_mux/ps8743.c +++ b/driver/usb_mux/ps8743.c @@ -115,10 +115,9 @@ static int ps8743_get_mux(const struct usb_mux *me, mux_state_t *mux_state) } /* Tune USB Tx/Rx Equalization */ -int ps8743_tune_usb_eq(int port, uint8_t tx, uint8_t rx) +int ps8743_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 = ps8743_write(me, PS8743_REG_USB_EQ_TX, tx); ret |= ps8743_write(me, PS8743_REG_USB_EQ_RX, rx); diff --git a/driver/usb_mux/ps8743.h b/driver/usb_mux/ps8743.h index bd8db20167..bdb3e9a885 100644 --- a/driver/usb_mux/ps8743.h +++ b/driver/usb_mux/ps8743.h @@ -75,7 +75,7 @@ #define PS8743_USB_EQ_RX_21_3_DB 0xd0 #define PS8743_USB_EQ_RX_22_2_DB 0xe0 -int ps8743_tune_usb_eq(int i2c_addr, uint8_t tx, uint8_t rx); +int ps8743_tune_usb_eq(const struct usb_mux *me, uint8_t tx, uint8_t rx); int ps8743_write(const struct usb_mux *me, uint8_t reg, uint8_t val); int ps8743_read(const struct usb_mux *me, uint8_t reg, int *val); |