Skip to content

Commit

Permalink
wimax: replace uses of __constant_{endian}
Browse files Browse the repository at this point in the history
Base versions handle constant folding now.

Signed-off-by: Harvey Harrison <[email protected]>
Acked-by: Inaky Perez-Gonzalez <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hharrison authored and davem330 committed Feb 1, 2009
1 parent 4fb6699 commit ee43777
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
12 changes: 6 additions & 6 deletions drivers/net/wimax/i2400m/fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};


Expand Down Expand Up @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions drivers/net/wimax/i2400m/i2400m.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};


Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wimax/i2400m/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
16 changes: 8 additions & 8 deletions drivers/net/wimax/i2400m/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions drivers/net/wimax/i2400m/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee43777

Please sign in to comment.