[PATCH 1/4] staging: typec: Replace pd_header_cnt with pd_header_cnt_le
? ?
incarnation.p.lee at outlook.com
Sun Jun 11 10:53:19 UTC 2017
From: Pan Li <incarnation.p.lee at outlook.com>
Convertn __le to cpu type when access pd_header count.
Signed-off-by: Pan Li <incarnation.p.lee at outlook.com>
---
drivers/staging/typec/tcpci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c
index df72d8b..2adb543 100644
--- a/drivers/staging/typec/tcpci.c
+++ b/drivers/staging/typec/tcpci.c
@@ -287,7 +287,7 @@ static int tcpci_pd_transmit(struct tcpc_dev *tcpc,
unsigned int reg, cnt, header;
int ret;
- cnt = msg ? pd_header_cnt(msg->header) * 4 : 0;
+ cnt = msg ? pd_header_cnt_le(msg->header) * 4 : 0;
ret = regmap_write(tcpci->regmap, TCPC_TX_BYTE_CNT, cnt + 2);
if (ret < 0)
return ret;
--
1.9.1
More information about the devel
mailing list