]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
wimax: replace uses of __constant_{endian}
authorHarvey Harrison <harvey.harrison@gmail.com>
Sun, 1 Feb 2009 08:43:54 +0000 (00:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2009 08:43:54 +0000 (00:43 -0800)
Base versions handle constant folding now.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wimax/i2400m/fw.c
drivers/net/wimax/i2400m/i2400m.h
drivers/net/wimax/i2400m/netdev.c
drivers/net/wimax/i2400m/sdio.c
drivers/net/wimax/i2400m/usb.c

index 1d8271f34c3832b35feafeaabe854cad7278e22b..ecd0cfaefdcc583785484b6b4c1cedadead9bc60 100644 (file)
 
 
 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;
index 067c871cc2266e62a08112161a38bb43a6724d8d..236f19ea4c853c72f7e27ce1bb5eece628b837aa 100644 (file)
@@ -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)
 };
 
 
index 57159e4bbfe1e53853e315d5829b3cd247b5af04..be8be4d0709c0963006b0243bce14b6d1e3e75ce 100644 (file)
@@ -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);
 }
 
 
index 1bfa283bbd8aabef64c88364cdd749933b02cde8..123a5f8db6adddbe27966e18dd194dcd3210270d 100644 (file)
@@ -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)
index c6d93465c7e24d8e3883061814411edc00f0ecc0..7c28610da6f32b7382c1b48dd6f2b434f9721901 100644 (file)
@@ -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);