diff options
author | Pavel Roskin <proski@gnu.org> | 2011-07-14 20:21:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-20 15:04:33 -0400 |
commit | e0d687bd9df218ba3d97aac15919d30816d72dcb (patch) | |
tree | 8a1a93dc7f940b4a0900aaa149725b535df17e25 /drivers/net/wireless/ath/ath5k/eeprom.c | |
parent | 491735929b63cb665b2215e3183b960e66f221f3 (diff) |
ath5k: merge ath5k_hw and ath5k_softc
Both ath5k_hw and ath5k_softc represent one instance of the hardware.
This duplication is historical and is not needed anymore.
Keep the name "ath5k_hw" for the merged structure and "ah" for the
variable pointing to it. "ath5k_hw" is shorter than "ath5k_softc", more
descriptive and more widely used.
Put the combined structure to ath5k.h where the old ath5k_softc used to
be. Move some code from base.h to ath5k.h as needed.
Remove memory allocation for struct ath5k_hw and the corresponding error
handling. Merge iobase and ah_iobase fields.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/eeprom.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/eeprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c index d9e605e37007..9068b9165265 100644 --- a/drivers/net/wireless/ath/ath5k/eeprom.c +++ b/drivers/net/wireless/ath/ath5k/eeprom.c | |||
@@ -105,7 +105,7 @@ ath5k_eeprom_init_header(struct ath5k_hw *ah) | |||
105 | * big still, waiting on a better value. | 105 | * big still, waiting on a better value. |
106 | */ | 106 | */ |
107 | if (eep_max > (3 * AR5K_EEPROM_INFO_MAX)) { | 107 | if (eep_max > (3 * AR5K_EEPROM_INFO_MAX)) { |
108 | ATH5K_ERR(ah->ah_sc, "Invalid max custom EEPROM size: " | 108 | ATH5K_ERR(ah, "Invalid max custom EEPROM size: " |
109 | "%d (0x%04x) max expected: %d (0x%04x)\n", | 109 | "%d (0x%04x) max expected: %d (0x%04x)\n", |
110 | eep_max, eep_max, | 110 | eep_max, eep_max, |
111 | 3 * AR5K_EEPROM_INFO_MAX, | 111 | 3 * AR5K_EEPROM_INFO_MAX, |
@@ -119,7 +119,7 @@ ath5k_eeprom_init_header(struct ath5k_hw *ah) | |||
119 | cksum ^= val; | 119 | cksum ^= val; |
120 | } | 120 | } |
121 | if (cksum != AR5K_EEPROM_INFO_CKSUM) { | 121 | if (cksum != AR5K_EEPROM_INFO_CKSUM) { |
122 | ATH5K_ERR(ah->ah_sc, "Invalid EEPROM " | 122 | ATH5K_ERR(ah, "Invalid EEPROM " |
123 | "checksum: 0x%04x eep_max: 0x%04x (%s)\n", | 123 | "checksum: 0x%04x eep_max: 0x%04x (%s)\n", |
124 | cksum, eep_max, | 124 | cksum, eep_max, |
125 | eep_max == AR5K_EEPROM_INFO_MAX ? | 125 | eep_max == AR5K_EEPROM_INFO_MAX ? |