diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-22 13:45:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:11 -0500 |
commit | 0e5ce1f33049a823f508f4a3f53ba186b12396b8 (patch) | |
tree | 1bd83ce139e0531d38947d1aa95670f5eca3b826 /drivers/net/wireless/iwlwifi | |
parent | 5b5e807fb8b56e31319fe8b27e1b072bb80862a8 (diff) |
misc wireless annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 8d603257b926..b662ff3b9141 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -1566,7 +1566,7 @@ static void get_eeprom_mac(struct iwl3945_priv *priv, u8 *mac) | |||
1566 | */ | 1566 | */ |
1567 | int iwl3945_eeprom_init(struct iwl3945_priv *priv) | 1567 | int iwl3945_eeprom_init(struct iwl3945_priv *priv) |
1568 | { | 1568 | { |
1569 | u16 *e = (u16 *)&priv->eeprom; | 1569 | __le16 *e = (__le16 *)&priv->eeprom; |
1570 | u32 gp = iwl3945_read32(priv, CSR_EEPROM_GP); | 1570 | u32 gp = iwl3945_read32(priv, CSR_EEPROM_GP); |
1571 | u32 r; | 1571 | u32 r; |
1572 | int sz = sizeof(priv->eeprom); | 1572 | int sz = sizeof(priv->eeprom); |
@@ -1609,7 +1609,7 @@ int iwl3945_eeprom_init(struct iwl3945_priv *priv) | |||
1609 | IWL_ERROR("Time out reading EEPROM[%d]", addr); | 1609 | IWL_ERROR("Time out reading EEPROM[%d]", addr); |
1610 | return -ETIMEDOUT; | 1610 | return -ETIMEDOUT; |
1611 | } | 1611 | } |
1612 | e[addr / 2] = le16_to_cpu(r >> 16); | 1612 | e[addr / 2] = cpu_to_le16(r >> 16); |
1613 | } | 1613 | } |
1614 | 1614 | ||
1615 | return 0; | 1615 | return 0; |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 5a9fa42f999b..ce0574b087fb 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -1648,7 +1648,7 @@ static void get_eeprom_mac(struct iwl4965_priv *priv, u8 *mac) | |||
1648 | */ | 1648 | */ |
1649 | int iwl4965_eeprom_init(struct iwl4965_priv *priv) | 1649 | int iwl4965_eeprom_init(struct iwl4965_priv *priv) |
1650 | { | 1650 | { |
1651 | u16 *e = (u16 *)&priv->eeprom; | 1651 | __le16 *e = (__le16 *)&priv->eeprom; |
1652 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); | 1652 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); |
1653 | u32 r; | 1653 | u32 r; |
1654 | int sz = sizeof(priv->eeprom); | 1654 | int sz = sizeof(priv->eeprom); |
@@ -1692,7 +1692,7 @@ int iwl4965_eeprom_init(struct iwl4965_priv *priv) | |||
1692 | rc = -ETIMEDOUT; | 1692 | rc = -ETIMEDOUT; |
1693 | goto done; | 1693 | goto done; |
1694 | } | 1694 | } |
1695 | e[addr / 2] = le16_to_cpu(r >> 16); | 1695 | e[addr / 2] = cpu_to_le16(r >> 16); |
1696 | } | 1696 | } |
1697 | rc = 0; | 1697 | rc = 0; |
1698 | 1698 | ||