summaryrefslogtreecommitdiff
path: root/board/wheatley/usb_pd_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/wheatley/usb_pd_policy.c')
-rw-r--r--board/wheatley/usb_pd_policy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/wheatley/usb_pd_policy.c b/board/wheatley/usb_pd_policy.c
index ff88ede3bc..5f0f8c5761 100644
--- a/board/wheatley/usb_pd_policy.c
+++ b/board/wheatley/usb_pd_policy.c
@@ -299,8 +299,9 @@ static void hpd1_irq_deferred(void)
DECLARE_DEFERRED(hpd0_irq_deferred);
DECLARE_DEFERRED(hpd1_irq_deferred);
-#define PORT_TO_HPD_IRQ_DEFERRED(port) ((port) ? hpd1_irq_deferred : \
- hpd0_irq_deferred)
+#define PORT_TO_HPD_IRQ_DEFERRED(port) ((port) ? \
+ &hpd1_irq_deferred_data : \
+ &hpd0_irq_deferred_data)
static int svdm_dp_attention(int port, uint32_t *payload)
{