ath: fix spelling of Grenada
Subsystems (2)
PATCH 1/3 ath: fix spelling of Grenada
Signed-off-by Pavel Roskin <[email protected]>
--- drivers/net/wireless/ath/regd.h | 2 +- drivers/net/wireless/ath/regd_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/regd.h +1 -1
@@ -101,7 +101,7 @@ enum CountryCode {CTRY_GERMANY =276 ,CTRY_GREECE =300 ,CTRY_GREENLAND =304 , -CTRY_GRENEDA =308 , +CTRY_GRENADA =308 ,CTRY_GUAM =316 ,CTRY_GUATEMALA =320 , CTRY_HAITI = 332,
drivers/net/wireless/ath/regd_common.h +1 -1
@@ -332,7 +332,7 @@ static struct country_code_to_enum_rd allCountries[] = { {CTRY_GERMANY, ETSI1_WORLD, "DE"}, {CTRY_GREECE, ETSI1_WORLD, "GR"}, {CTRY_GREENLAND, ETSI1_WORLD, "GL"}, - {CTRY_GRENEDA, FCC3_FCCA, "GD"}, + {CTRY_GRENADA, FCC3_FCCA, "GD"}, {CTRY_GUAM, FCC1_FCCA, "GU"}, {CTRY_GUATEMALA, FCC1_FCCA, "GT"}, {CTRY_HAITI, ETSI1_WORLD, "HT"},
PATCH 2/3 ath5k: clean up base.h and its use
Remove unnecessary includes from base.h. Add includes to other files as necessary. Don't include base.h unless needed.
Move declarations for functions in base.c from ath5k.h to base.h.
Use a better named define to protect base.h against double inclusion.
Signed-off-by Pavel Roskin <[email protected]>
--- drivers/net/wireless/ath/ath5k/ani.c | 1 drivers/net/wireless/ath/ath5k/ani.h | 4 ++ drivers/net/wireless/ath/ath5k/ath5k.h | 34 ---------------- drivers/net/wireless/ath/ath5k/attach.c | 1 drivers/net/wireless/ath/ath5k/base.c | 3 + drivers/net/wireless/ath/ath5k/base.h | 54 +++++++++++++++++++------ drivers/net/wireless/ath/ath5k/caps.c | 2 - drivers/net/wireless/ath/ath5k/debug.c | 15 +++---- drivers/net/wireless/ath/ath5k/desc.c | 1 drivers/net/wireless/ath/ath5k/dma.c | 1 drivers/net/wireless/ath/ath5k/eeprom.c | 1 drivers/net/wireless/ath/ath5k/gpio.c | 1 drivers/net/wireless/ath/ath5k/initvals.c | 1 drivers/net/wireless/ath/ath5k/led.c | 1 drivers/net/wireless/ath/ath5k/mac80211-ops.c | 2 + drivers/net/wireless/ath/ath5k/pcu.c | 1 drivers/net/wireless/ath/ath5k/phy.c | 2 - drivers/net/wireless/ath/ath5k/qcu.c | 1 drivers/net/wireless/ath/ath5k/reset.c | 1 drivers/net/wireless/ath/ath5k/rfkill.c | 2 - drivers/net/wireless/ath/ath5k/sysfs.c | 1 drivers/net/wireless/ath/ath5k/trace.h | 3 + 22 files changed, 62 insertions(+), 71 deletions(-)
drivers/net/wireless/ath/ath5k/ani.c +0 -1
@@ -15,7 +15,6 @@*/ #include "ath5k.h" -#include "base.h" #include "reg.h" #include "debug.h" #include "ani.h"
drivers/net/wireless/ath/ath5k/ani.h +4 -0
@@ -16,6 +16,10 @@#ifndef ANI_H #define ANI_H +#include "../ath.h" + +enum ath5k_phy_error_code ; +/* these thresholds are relative to the ATH5K_ANI_LISTEN_PERIOD */ #define ATH5K_ANI_LISTEN_PERIOD 100#define ATH5K_ANI_OFDM_TRIG_HIGH 500
drivers/net/wireless/ath/ath5k/ath5k.h +0 -34
@@ -295,17 +295,6 @@ enum ath5k_radio {* Common silicon revision/version values */ -enum ath5k_srev_type { -AR5K_VERSION_MAC , -AR5K_VERSION_RAD , -}; - -struct ath5k_srev_name { -const char *sr_name; -enum ath5k_srev_type sr_type; -u_int sr_val; -}; -#define AR5K_SREV_UNKNOWN 0xffff#define AR5K_SREV_AR5210 0x00/* Crete */
@@ -1327,36 +1316,13 @@ struct ath_bus_ops {extern const struct ieee80211_ops ath5k_hw_ops;/* Initialization and detach functions */ -int ath5k_init_softc (struct ath5k_hw *ah,const struct ath_bus_ops *bus_ops); -void ath5k_deinit_softc (struct ath5k_hw *ah);int ath5k_hw_init (struct ath5k_hw *ah);void ath5k_hw_deinit (struct ath5k_hw *ah);int ath5k_sysfs_register (struct ath5k_hw *ah);void ath5k_sysfs_unregister (struct ath5k_hw *ah); -/* base.c */ -struct ath5k_buf ; -struct ath5k_txq ; - -void ath5k_set_beacon_filter (struct ieee80211_hw *hw,bool enable); -bool ath5k_any_vif_assoc (struct ath5k_hw *ah); -void ath5k_tx_queue (struct ieee80211_hw *hw,struct sk_buff *skb, -struct ath5k_txq *txq); -int ath5k_start (struct ieee80211_hw *hw); -void ath5k_stop (struct ieee80211_hw *hw); -void ath5k_mode_setup (struct ath5k_hw *ah,struct ieee80211_vif *vif); -void ath5k_update_bssid_mask_and_opmode (struct ath5k_hw *ah, -struct ieee80211_vif *vif); -int ath5k_chan_set (struct ath5k_hw *ah,struct ieee80211_channel *chan); -void ath5k_beacon_update_timers (struct ath5k_hw *ah,u64 bc_tsf); -int ath5k_beacon_update (struct ieee80211_hw *hw,struct ieee80211_vif *vif); -void ath5k_beacon_config (struct ath5k_hw *ah); -void ath5k_txbuf_free_skb (struct ath5k_hw *ah,struct ath5k_buf *bf); -void ath5k_rxbuf_free_skb (struct ath5k_hw *ah,struct ath5k_buf *bf); -/*Chip id helper functions */ -const char *ath5k_chip_name (enum ath5k_srev_type type,u_int16_t val);int ath5k_hw_read_srev (struct ath5k_hw *ah);/* LED functions */
drivers/net/wireless/ath/ath5k/attach.c +0 -1
@@ -25,7 +25,6 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /** * ath5k_hw_post - Power On Self Test helper function
drivers/net/wireless/ath/ath5k/base.c +3 -0
@@ -51,6 +51,7 @@#include <linux/uaccess.h> #include <linux/slab.h> #include <linux/etherdevice.h> +#include <linux/nl80211.h> #include <net/ieee80211_radiotap.h>
@@ -60,6 +61,8 @@#include "reg.h" #include "debug.h" #include "ani.h" +#include "ath5k.h" +#include "../regd.h" #define CREATE_TRACE_POINTS #include "trace.h"
drivers/net/wireless/ath/ath5k/base.h +42 -12
73 lines not on this page · raw message
drivers/net/wireless/ath/ath5k/caps.c +1 -1
@@ -24,7 +24,7 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" +#include "../regd.h" /* * Fill the capabilities struct
drivers/net/wireless/ath/ath5k/debug.c +6 -9
@@ -58,19 +58,18 @@* THE POSSIBILITY OF SUCH DAMAGES. */ -#include "base.h" +#include <linux/module.h> +#include <linux/seq_file.h> +#include <linux/list.h> #include "debug.h" +#include "ath5k.h" +#include "reg.h" +#include "base.h" static unsigned int ath5k_debug;module_param_named (debug, ath5k_debug, uint,0 ); -#ifdef CONFIG_ATH5K_DEBUG - -#include <linux/seq_file.h> -#include "reg.h" -#include "ani.h" -static int ath5k_debugfs_open (struct inode *inode,struct file *file) { file->private_data = inode->i_private;
@@ -1031,5 +1030,3 @@ ath5k_debug_printtxbuf(struct ath5k_hw *ah, struct ath5k_buf *bf) td->tx_stat.tx_status_0, td->tx_stat.tx_status_1, done ? ' ' : (ts.ts_status == 0) ? '*' : '!'); } - -#endif /* ifdef CONFIG_ATH5K_DEBUG */
drivers/net/wireless/ath/ath5k/desc.c +0 -1
@@ -24,7 +24,6 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /************************\
drivers/net/wireless/ath/ath5k/dma.c +0 -1
@@ -35,7 +35,6 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /*********\
drivers/net/wireless/ath/ath5k/eeprom.c +0 -1
@@ -26,7 +26,6 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /******************\
drivers/net/wireless/ath/ath5k/gpio.c +0 -1
@@ -23,7 +23,6 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /* * Set led state
drivers/net/wireless/ath/ath5k/initvals.c +0 -1
@@ -22,7 +22,6 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /* * Mode-independent initial register writes
drivers/net/wireless/ath/ath5k/led.c +0 -1
@@ -41,7 +41,6 @@#include <linux/pci.h> #include "ath5k.h" -#include "base.h" #define ATH_SDEVICE (subv, subd) \ .vendor = PCI_ANY_ID, .device = PCI_ANY_ID, \
drivers/net/wireless/ath/ath5k/mac80211-ops.c +2 -0
@@ -41,8 +41,10 @@* */ +#include <net/mac80211.h> #include <asm/unaligned.h> +#include "ath5k.h" #include "base.h" #include "reg.h"
drivers/net/wireless/ath/ath5k/pcu.c +0 -1
@@ -29,7 +29,6 @@#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /* * AR5212+ can use higher rates for ack transmission
drivers/net/wireless/ath/ath5k/phy.c +1 -1
@@ -26,9 +26,9 @@#include "ath5k.h" #include "reg.h" -#include "base.h" #include "rfbuffer.h" #include "rfgain.h" +#include "../regd.h" /******************\
drivers/net/wireless/ath/ath5k/qcu.c +0 -1
@@ -23,7 +23,6 @@ Queue Control Unit, DFS Control Unit Functions#include "ath5k.h" #include "reg.h" #include "debug.h" -#include "base.h" /******************\
drivers/net/wireless/ath/ath5k/reset.c +0 -1
@@ -30,7 +30,6 @@#include <linux/platform_device.h> #include "ath5k.h" #include "reg.h" -#include "base.h" #include "debug.h"
drivers/net/wireless/ath/ath5k/rfkill.c +1 -1
@@ -33,7 +33,7 @@* THE POSSIBILITY OF SUCH DAMAGES. */ -#include "base.h" +#include "ath5k.h" static inline void ath5k_rfkill_disable (struct ath5k_hw *ah)
drivers/net/wireless/ath/ath5k/sysfs.c +0 -1
@@ -1,7 +1,6 @@#include <linux/device.h> #include <linux/pci.h> -#include "base.h" #include "ath5k.h" #include "reg.h"
drivers/net/wireless/ath/ath5k/trace.h +2 -1
@@ -2,7 +2,6 @@#define __TRACE_ATH5K_H#include <linux/tracepoint.h> -#include "base.h" #ifndef CONFIG_ATH5K_TRACER #undef TRACE_EVENT
@@ -11,6 +10,8 @@ static inline void trace_ ## name(proto) {}#endif struct sk_buff ; +struct ath5k_txq ; +struct ath5k_tx_status ;#undef TRACE_SYSTEM#define TRACE_SYSTEM ath5k
PATCH 3/3 ath5k: remove last references to "softc"
In reply to Pavel RoskinSigned-off-by Pavel Roskin <[email protected]>
--- drivers/net/wireless/ath/ath5k/ahb.c | 4 ++-- drivers/net/wireless/ath/ath5k/attach.c | 2 +- drivers/net/wireless/ath/ath5k/base.c | 4 ++-- drivers/net/wireless/ath/ath5k/base.h | 4 ++-- drivers/net/wireless/ath/ath5k/pci.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-)
drivers/net/wireless/ath/ath5k/ahb.c +2 -2
@@ -170,7 +170,7 @@ static int ath_ahb_probe(struct platform_device *pdev)__set_bit (ATH_STAT_2G_DISABLED , ah->status); } - ret =ath5k_init_softc (ah, &ath_ahb_bus_ops); + ret =ath5k_init_ah (ah, &ath_ahb_bus_ops);if (ret !=0 ) {dev_err (&pdev->dev,"failed to attach device, err=%d\n" , ret); ret = -ENODEV ;
@@ -215,7 +215,7 @@ static int ath_ahb_remove(struct platform_device *pdev)__raw_writel (reg, (void __iomem *)AR5K_AR5312_ENABLE ); } -ath5k_deinit_softc (ah); +ath5k_deinit_ah (ah);platform_set_drvdata (pdev,NULL );ieee80211_free_hw (hw);
drivers/net/wireless/ath/ath5k/attach.c +1 -1
@@ -94,7 +94,7 @@ static int ath5k_hw_post(struct ath5k_hw *ah)/** * ath5k_hw_init - Check if hw is supported and init the needed structs * -* @ah: The &struct ath5k_hw we got from the driver's init_softc function +* @ah: The &struct ath5k_hw associated with the device * * Check if the device is supported, perform a POST and initialize the needed * structs. Returns -ENOMEM if we don't have memory for the needed structs,
drivers/net/wireless/ath/ath5k/base.c +2 -2
@@ -2346,7 +2346,7 @@ ath5k_tx_complete_poll_work(struct work_struct *work)\*************************/ int __devinit -ath5k_init_softc (struct ath5k_hw *ah,const struct ath_bus_ops *bus_ops) +ath5k_init_ah (struct ath5k_hw *ah,const struct ath_bus_ops *bus_ops) {struct ieee80211_hw *hw = ah->hw;struct ath_common *common;
@@ -2900,7 +2900,7 @@ err: }void -ath5k_deinit_softc (struct ath5k_hw *ah) +ath5k_deinit_ah (struct ath5k_hw *ah) {struct ieee80211_hw *hw = ah->hw;
drivers/net/wireless/ath/ath5k/base.h +2 -2
@@ -108,8 +108,8 @@ void ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb,const char *ath5k_chip_name (enum ath5k_srev_type type,u_int16_t val); -int ath5k_init_softc (struct ath5k_hw *ah,const struct ath_bus_ops *bus_ops); -void ath5k_deinit_softc (struct ath5k_hw *ah); +int ath5k_init_ah (struct ath5k_hw *ah,const struct ath_bus_ops *bus_ops); +void ath5k_deinit_ah (struct ath5k_hw *ah);/* Check whether BSSID mask is supported */ #define ath5k_hw_hasbssidmask (_ah) (ah->ah_version == AR5K_AR5212)
drivers/net/wireless/ath/ath5k/pci.c +2 -2
@@ -261,7 +261,7 @@ ath5k_pci_probe(struct pci_dev *pdev, ah->iobase = mem;/* So we can unmap it on detach */ /* Initialize */ - ret =ath5k_init_softc (ah, &ath_pci_bus_ops); + ret =ath5k_init_ah (ah, &ath_pci_bus_ops);if (ret) goto err_free;
@@ -287,7 +287,7 @@ ath5k_pci_remove(struct pci_dev *pdev)struct ieee80211_hw *hw =pci_get_drvdata (pdev);struct ath5k_hw *ah = hw->priv; -ath5k_deinit_softc (ah); +ath5k_deinit_ah (ah);pci_iounmap (pdev, ah->iobase);pci_release_region (pdev,0 );pci_disable_device (pdev);