diff options
Diffstat (limited to 'driver/tcpm/ps8xxx.c')
-rw-r--r-- | driver/tcpm/ps8xxx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/tcpm/ps8xxx.c b/driver/tcpm/ps8xxx.c index 37bfb30cc0..ade607ac09 100644 --- a/driver/tcpm/ps8xxx.c +++ b/driver/tcpm/ps8xxx.c @@ -383,9 +383,11 @@ bool check_ps8755_chip(int port) } void ps8xxx_tcpc_update_hpd_status(const struct usb_mux *me, - int hpd_lvl, int hpd_irq) + mux_state_t mux_state) { int port = me->usb_port; + int hpd_lvl = (mux_state & USB_PD_MUX_HPD_LVL) ? 1 : 0; + int hpd_irq = (mux_state & USB_PD_MUX_HPD_IRQ) ? 1 : 0; if (IS_ENABLED(CONFIG_USB_PD_TCPM_PS8751_CUSTOM_MUX_DRIVER) && product_id[me->usb_port] == PS8751_PRODUCT_ID && |