Re: [PATCH 2/3] wimax: replace uses of __constant_{endian}

Previous thread: [PATCH 1/3] wireless: replace uses of __constant_{endian} by Harvey Harrison on Wednesday, January 28, 2009 - 1:00 am. (3 messages)

Next thread: [PATCH 3/3] net: replace uses of __constant_{endian} by Harvey Harrison on Wednesday, January 28, 2009 - 1:00 am. (2 messages)
From: Harvey Harrison
Date: Wednesday, January 28, 2009 - 1:00 am

Base versions handle constant folding now.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
Separated from the net omnibus as this is mostly dealing with le-hardware
registers rather than protocol headers as the rest of the net/ stuff is.

 drivers/net/wimax/i2400m/fw.c     |   12 ++++++------
 drivers/net/wimax/i2400m/i2400m.h |   16 ++++++++--------
 drivers/net/wimax/i2400m/netdev.c |    2 +-
 drivers/net/wimax/i2400m/sdio.c   |   16 ++++++++--------
 drivers/net/wimax/i2400m/usb.c    |   16 ++++++++--------
 5 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/drivers/net/wimax/i2400m/fw.c b/drivers/net/wimax/i2400m/fw.c
index 1d8271f..ecd0cfa 100644
--- a/drivers/net/wimax/i2400m/fw.c
+++ b/drivers/net/wimax/i2400m/fw.c
@@ -140,10 +140,10 @@
 

 static const __le32 i2400m_ACK_BARKER[4] = {
-	__constant_cpu_to_le32(I2400M_ACK_BARKER),
-	__constant_cpu_to_le32(I2400M_ACK_BARKER),
-	__constant_cpu_to_le32(I2400M_ACK_BARKER),
-	__constant_cpu_to_le32(I2400M_ACK_BARKER)
+	cpu_to_le32(I2400M_ACK_BARKER),
+	cpu_to_le32(I2400M_ACK_BARKER),
+	cpu_to_le32(I2400M_ACK_BARKER),
+	cpu_to_le32(I2400M_ACK_BARKER)
 };
 

@@ -771,8 +771,8 @@ static
 int i2400m_dnload_init_nonsigned(struct i2400m *i2400m)
 {
 #define POKE(a, d) {					\
-	.address = __constant_cpu_to_le32(a),		\
-	.data = __constant_cpu_to_le32(d)		\
+	.address = cpu_to_le32(a),		\
+	.data = cpu_to_le32(d)		\
 }
 	static const struct {
 		__le32 address;
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h
index 067c871..236f19e 100644
--- a/drivers/net/wimax/i2400m/i2400m.h
+++ b/drivers/net/wimax/i2400m/i2400m.h
@@ -664,17 +664,17 @@ extern struct i2400m_msg_hdr *i2400m_tx_msg_get(struct i2400m *, size_t *);
 extern void i2400m_tx_msg_sent(struct i2400m *);
 
 static const __le32 i2400m_NBOOT_BARKER[4] = ...
From: Inaky Perez-Gonzalez
Date: Friday, January 30, 2009 - 12:43 am

Acked-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>

Thank you,

-- 
Inaky
--

From: David Miller
Date: Sunday, February 1, 2009 - 1:44 am

From: Inaky Perez-Gonzalez <inaky@linux.intel.com>

Applied, thanks guys.
--

Previous thread: [PATCH 1/3] wireless: replace uses of __constant_{endian} by Harvey Harrison on Wednesday, January 28, 2009 - 1:00 am. (3 messages)

Next thread: [PATCH 3/3] net: replace uses of __constant_{endian} by Harvey Harrison on Wednesday, January 28, 2009 - 1:00 am. (2 messages)