Skip to content

Commit 5eacb2a

Browse files
keith-zephyrjhedberg
authored andcommitted
usbc: ps8xxx: Fix build error
Fix a build error in the PS8xxx TCPC driver. Signed-off-by: Keith Short <[email protected]>
1 parent 2221811 commit 5eacb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb_c/tcpc/ps8xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ int ps8xxx_tcpc_get_rx_pending_msg(const struct device *dev, struct pd_msg *msg)
263263
buf[1].len = 1;
264264
buf[1].flags = I2C_MSG_RESTART | I2C_MSG_READ;
265265

266-
buf[2].buf = &msg->type;
266+
buf[2].buf = (uint8_t *)&msg->type;
267267
buf[2].len = 1;
268268
buf[2].flags = I2C_MSG_RESTART | I2C_MSG_READ;
269269

0 commit comments

Comments
 (0)