Patchwork [U-Boot,03/15] pcnet: s/le16_to_cpu/cpu_to_le16/ in pcnet_send

login
register
mail settings
Submitter Paul Burton
Date Oct. 23, 2013, 10:07 a.m.
Message ID <1382522885-29524-4-git-send-email-paul.burton@imgtec.com>
Download mbox | patch
Permalink /patch/285599/
State Superseded
Delegated to: Daniel Schwierzeck
Headers show

Comments

Paul Burton - Oct. 23, 2013, 10:07 a.m.
This should cause no change to the generated code, but is semantically
correct.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
---
 drivers/net/pcnet.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c
index a30a0bc..843a6fc 100644
--- a/drivers/net/pcnet.c
+++ b/drivers/net/pcnet.c
@@ -427,10 +427,10 @@  static int pcnet_send(struct eth_device *dev, void *packet, int pkt_len)
 	 * set the status with the "ownership" bits last.
 	 */
 	status = 0x8300;
-	entry->length = le16_to_cpu(-pkt_len);
+	entry->length = cpu_to_le16(-pkt_len);
 	entry->misc = 0x00000000;
 	entry->base = PCI_TO_MEM_LE(dev, packet);
-	entry->status = le16_to_cpu(status);
+	entry->status = cpu_to_le16(status);
 
 	/* Trigger an immediate send poll. */
 	pcnet_write_csr(dev, 0, 0x0008);