wimax: replace uses of __constant_{endian}
Subsystems (2)
PATCH 2/3 wimax: replace uses of __constant_{endian}
Base versions handle constant folding now.
Signed-off-by Harvey Harrison <[email protected]>
---
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(-)
drivers/net/wimax/i2400m/fw.c +6 -6
@@ -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 @@ staticint 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;
drivers/net/wimax/i2400m/i2400m.h +8 -8
@@ -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 ] = { -__constant_cpu_to_le32 (I2400M_NBOOT_BARKER ), -__constant_cpu_to_le32 (I2400M_NBOOT_BARKER ), -__constant_cpu_to_le32 (I2400M_NBOOT_BARKER ), -__constant_cpu_to_le32 (I2400M_NBOOT_BARKER ) +cpu_to_le32 (I2400M_NBOOT_BARKER ), +cpu_to_le32 (I2400M_NBOOT_BARKER ), +cpu_to_le32 (I2400M_NBOOT_BARKER ), +cpu_to_le32 (I2400M_NBOOT_BARKER ) };static const __le32 i2400m_SBOOT_BARKER[4 ] = { -__constant_cpu_to_le32 (I2400M_SBOOT_BARKER ), -__constant_cpu_to_le32 (I2400M_SBOOT_BARKER ), -__constant_cpu_to_le32 (I2400M_SBOOT_BARKER ), -__constant_cpu_to_le32 (I2400M_SBOOT_BARKER ) +cpu_to_le32 (I2400M_SBOOT_BARKER ), +cpu_to_le32 (I2400M_SBOOT_BARKER ), +cpu_to_le32 (I2400M_SBOOT_BARKER ), +cpu_to_le32 (I2400M_SBOOT_BARKER ) };
drivers/net/wimax/i2400m/netdev.c +1 -1
@@ -419,7 +419,7 @@ void i2400m_rx_fake_eth_header(struct net_device *net_dev,memcpy (eth_hdr->h_dest, net_dev->dev_addr,sizeof (eth_hdr->h_dest));memset (eth_hdr->h_source,0 ,sizeof (eth_hdr->h_dest)); - eth_hdr->h_proto =__constant_cpu_to_be16 (ETH_P_IP ); + eth_hdr->h_proto =cpu_to_be16 (ETH_P_IP ); }
drivers/net/wimax/i2400m/sdio.c +8 -8
@@ -255,16 +255,16 @@ int i2400ms_bus_reset(struct i2400m *i2400m, enum i2400m_reset_type rt) container_of(i2400m, struct i2400ms, i2400m);struct device *dev =i2400m_dev (i2400m);static const __le32 i2400m_WARM_BOOT_BARKER[4 ] = { -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), };static const __le32 i2400m_COLD_BOOT_BARKER[4 ] = { -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), };if (rt ==I2400M_RT_WARM )
drivers/net/wimax/i2400m/usb.c +8 -8
@@ -211,16 +211,16 @@ int i2400mu_bus_reset(struct i2400m *i2400m, enum i2400m_reset_type rt) container_of(i2400m, struct i2400mu, i2400m);struct device *dev =i2400m_dev (i2400m);static const __le32 i2400m_WARM_BOOT_BARKER[4 ] = { -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), +cpu_to_le32 (I2400M_WARM_RESET_BARKER ), };static const __le32 i2400m_COLD_BOOT_BARKER[4 ] = { -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), -__constant_cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), +cpu_to_le32 (I2400M_COLD_RESET_BARKER ), };d_fnstart (3 , dev,"(i2400m %p rt %u)\n" , i2400m, rt);
Signature · 1 line
1.6.1.401.gf39d5
Quoted 3 lines · Harvey Harrison
Base versions handle constant folding now.
Signed-off-by Harvey Harrison <[email protected]>
Thank you,
Signature · 1 line
Inaky
From: Inaky Perez-Gonzalez <[email protected]>
Date: Thu, 29 Jan 2009 23:43:49 -0800
Quoted 6 lines · Harvey Harrison
Quoted 3 lines
Base versions handle constant folding now.
Signed-off-by Harvey Harrison <[email protected]>
Applied, thanks guys.