diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-01-29 16:26:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:43 -0500 |
commit | c1b4aa3fb619782213af2af6652663c8f9cef373 (patch) | |
tree | a5c37c26ebf311dbf9428167efdb24915c1b824c /drivers/net/wireless/orinoco | |
parent | e5d24efe529b26d782b41a61a5e958c72f36f295 (diff) |
wireless: replace uses of __constant_{endian}
The base versions handle constant folding now.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco')
-rw-r--r-- | drivers/net/wireless/orinoco/hermes_dld.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/orinoco/hermes_dld.c b/drivers/net/wireless/orinoco/hermes_dld.c index d8c626e61a3a..45aed14bf110 100644 --- a/drivers/net/wireless/orinoco/hermes_dld.c +++ b/drivers/net/wireless/orinoco/hermes_dld.c | |||
@@ -573,9 +573,9 @@ static const struct { \ | |||
573 | __le16 id; \ | 573 | __le16 id; \ |
574 | u8 val[length]; \ | 574 | u8 val[length]; \ |
575 | } __attribute__ ((packed)) default_pdr_data_##pid = { \ | 575 | } __attribute__ ((packed)) default_pdr_data_##pid = { \ |
576 | __constant_cpu_to_le16((sizeof(default_pdr_data_##pid)/ \ | 576 | cpu_to_le16((sizeof(default_pdr_data_##pid)/ \ |
577 | sizeof(__le16)) - 1), \ | 577 | sizeof(__le16)) - 1), \ |
578 | __constant_cpu_to_le16(pid), \ | 578 | cpu_to_le16(pid), \ |
579 | data \ | 579 | data \ |
580 | } | 580 | } |
581 | 581 | ||
diff --git a/drivers/net/wireless/orinoco/orinoco.c b/drivers/net/wireless/orinoco/orinoco.c index 6514e4611b96..e082ef085116 100644 --- a/drivers/net/wireless/orinoco/orinoco.c +++ b/drivers/net/wireless/orinoco/orinoco.c | |||
@@ -1333,7 +1333,7 @@ static void orinoco_rx_monitor(struct net_device *dev, u16 rxfid, | |||
1333 | skb->dev = dev; | 1333 | skb->dev = dev; |
1334 | skb->ip_summed = CHECKSUM_NONE; | 1334 | skb->ip_summed = CHECKSUM_NONE; |
1335 | skb->pkt_type = PACKET_OTHERHOST; | 1335 | skb->pkt_type = PACKET_OTHERHOST; |
1336 | skb->protocol = __constant_htons(ETH_P_802_2); | 1336 | skb->protocol = cpu_to_be16(ETH_P_802_2); |
1337 | 1337 | ||
1338 | stats->rx_packets++; | 1338 | stats->rx_packets++; |
1339 | stats->rx_bytes += skb->len; | 1339 | stats->rx_bytes += skb->len; |