Commit d3706552 authored by Ondrej Zary's avatar Ondrej Zary Committed by Greg Kroah-Hartman

staging: ft1000-pcmcia: remove FT1000_INFO typedefs

Remove FT1000_INFO typedefs.
Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3aaf8073
...@@ -320,7 +320,7 @@ struct prov_record { ...@@ -320,7 +320,7 @@ struct prov_record {
u8 *pprov_data; u8 *pprov_data;
}; };
typedef struct _FT1000_INFO { struct ft1000_info {
struct net_device_stats stats; struct net_device_stats stats;
u16 DrvErrNum; u16 DrvErrNum;
u16 AsicID; u16 AsicID;
...@@ -368,7 +368,7 @@ typedef struct _FT1000_INFO { ...@@ -368,7 +368,7 @@ typedef struct _FT1000_INFO {
} DSPSess; } DSPSess;
struct proc_dir_entry *proc_ft1000; struct proc_dir_entry *proc_ft1000;
char netdevname[IFNAMSIZ]; char netdevname[IFNAMSIZ];
} FT1000_INFO, *PFT1000_INFO; };
typedef struct _DPRAM_BLK { typedef struct _DPRAM_BLK {
struct list_head list; struct list_head list;
......
...@@ -141,7 +141,7 @@ typedef struct _DSP_IMAGE_INFO_V6 { ...@@ -141,7 +141,7 @@ typedef struct _DSP_IMAGE_INFO_V6 {
void card_bootload(struct net_device *dev) void card_bootload(struct net_device *dev)
{ {
FT1000_INFO *info = (PFT1000_INFO) netdev_priv(dev); struct ft1000_info *info = (struct ft1000_info *) netdev_priv(dev);
unsigned long flags; unsigned long flags;
PULONG pdata; PULONG pdata;
UINT size; UINT size;
...@@ -173,7 +173,7 @@ void card_bootload(struct net_device *dev) ...@@ -173,7 +173,7 @@ void card_bootload(struct net_device *dev)
USHORT get_handshake(struct net_device *dev, USHORT expected_value) USHORT get_handshake(struct net_device *dev, USHORT expected_value)
{ {
FT1000_INFO *info = (PFT1000_INFO) netdev_priv(dev); struct ft1000_info *info = (struct ft1000_info *) netdev_priv(dev);
USHORT handshake; USHORT handshake;
ULONG tempx; ULONG tempx;
int loopcnt; int loopcnt;
...@@ -208,7 +208,7 @@ USHORT get_handshake(struct net_device *dev, USHORT expected_value) ...@@ -208,7 +208,7 @@ USHORT get_handshake(struct net_device *dev, USHORT expected_value)
void put_handshake(struct net_device *dev, USHORT handshake_value) void put_handshake(struct net_device *dev, USHORT handshake_value)
{ {
FT1000_INFO *info = (PFT1000_INFO) netdev_priv(dev); struct ft1000_info *info = (struct ft1000_info *) netdev_priv(dev);
ULONG tempx; ULONG tempx;
if (info->AsicID == ELECTRABUZZ_ID) { if (info->AsicID == ELECTRABUZZ_ID) {
...@@ -224,7 +224,7 @@ void put_handshake(struct net_device *dev, USHORT handshake_value) ...@@ -224,7 +224,7 @@ void put_handshake(struct net_device *dev, USHORT handshake_value)
USHORT get_request_type(struct net_device *dev) USHORT get_request_type(struct net_device *dev)
{ {
FT1000_INFO *info = (PFT1000_INFO) netdev_priv(dev); struct ft1000_info *info = (struct ft1000_info *) netdev_priv(dev);
USHORT request_type; USHORT request_type;
ULONG tempx; ULONG tempx;
...@@ -243,7 +243,7 @@ USHORT get_request_type(struct net_device *dev) ...@@ -243,7 +243,7 @@ USHORT get_request_type(struct net_device *dev)
long get_request_value(struct net_device *dev) long get_request_value(struct net_device *dev)
{ {
FT1000_INFO *info = (PFT1000_INFO) netdev_priv(dev); struct ft1000_info *info = (struct ft1000_info *) netdev_priv(dev);
long value; long value;
USHORT w_val; USHORT w_val;
...@@ -272,7 +272,7 @@ long get_request_value(struct net_device *dev) ...@@ -272,7 +272,7 @@ long get_request_value(struct net_device *dev)
void put_request_value(struct net_device *dev, long lvalue) void put_request_value(struct net_device *dev, long lvalue)
{ {
FT1000_INFO *info = (PFT1000_INFO) netdev_priv(dev); struct ft1000_info *info = (struct ft1000_info *) netdev_priv(dev);
USHORT size; USHORT size;
ULONG tempx; ULONG tempx;
...@@ -310,7 +310,7 @@ USHORT hdr_checksum(struct pseudo_hdr *pHdr) ...@@ -310,7 +310,7 @@ USHORT hdr_checksum(struct pseudo_hdr *pHdr)
int card_download(struct net_device *dev, const u8 *pFileStart, UINT FileLength) int card_download(struct net_device *dev, const u8 *pFileStart, UINT FileLength)
{ {
FT1000_INFO *info = (PFT1000_INFO) netdev_priv(dev); struct ft1000_info *info = (struct ft1000_info *) netdev_priv(dev);
int Status = SUCCESS; int Status = SUCCESS;
USHORT DspWordCnt = 0; USHORT DspWordCnt = 0;
UINT uiState; UINT uiState;
......
...@@ -135,7 +135,7 @@ inline void ft1000_asic_write(struct net_device *dev, u16 offset, u16 value) ...@@ -135,7 +135,7 @@ inline void ft1000_asic_write(struct net_device *dev, u16 offset, u16 value)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static inline u16 ft1000_read_fifo_len(struct net_device *dev) static inline u16 ft1000_read_fifo_len(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
if (info->AsicID == ELECTRABUZZ_ID) { if (info->AsicID == ELECTRABUZZ_ID) {
return (ft1000_read_reg(dev, FT1000_REG_UFIFO_STAT) - 16); return (ft1000_read_reg(dev, FT1000_REG_UFIFO_STAT) - 16);
...@@ -158,7 +158,7 @@ static inline u16 ft1000_read_fifo_len(struct net_device *dev) ...@@ -158,7 +158,7 @@ static inline u16 ft1000_read_fifo_len(struct net_device *dev)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
u16 ft1000_read_dpram(struct net_device * dev, int offset) u16 ft1000_read_dpram(struct net_device * dev, int offset)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
unsigned long flags; unsigned long flags;
u16 data; u16 data;
...@@ -187,7 +187,7 @@ u16 ft1000_read_dpram(struct net_device * dev, int offset) ...@@ -187,7 +187,7 @@ u16 ft1000_read_dpram(struct net_device * dev, int offset)
static inline void ft1000_write_dpram(struct net_device *dev, static inline void ft1000_write_dpram(struct net_device *dev,
int offset, u16 value) int offset, u16 value)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
unsigned long flags; unsigned long flags;
// Provide mutual exclusive access while reading ASIC registers. // Provide mutual exclusive access while reading ASIC registers.
...@@ -211,7 +211,7 @@ static inline void ft1000_write_dpram(struct net_device *dev, ...@@ -211,7 +211,7 @@ static inline void ft1000_write_dpram(struct net_device *dev,
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
u16 ft1000_read_dpram_mag_16(struct net_device *dev, int offset, int Index) u16 ft1000_read_dpram_mag_16(struct net_device *dev, int offset, int Index)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
unsigned long flags; unsigned long flags;
u16 data; u16 data;
...@@ -245,7 +245,7 @@ u16 ft1000_read_dpram_mag_16(struct net_device *dev, int offset, int Index) ...@@ -245,7 +245,7 @@ u16 ft1000_read_dpram_mag_16(struct net_device *dev, int offset, int Index)
static inline void ft1000_write_dpram_mag_16(struct net_device *dev, static inline void ft1000_write_dpram_mag_16(struct net_device *dev,
int offset, u16 value, int Index) int offset, u16 value, int Index)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
unsigned long flags; unsigned long flags;
// Provide mutual exclusive access while reading ASIC registers. // Provide mutual exclusive access while reading ASIC registers.
...@@ -273,7 +273,7 @@ static inline void ft1000_write_dpram_mag_16(struct net_device *dev, ...@@ -273,7 +273,7 @@ static inline void ft1000_write_dpram_mag_16(struct net_device *dev,
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
u32 ft1000_read_dpram_mag_32(struct net_device *dev, int offset) u32 ft1000_read_dpram_mag_32(struct net_device *dev, int offset)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
unsigned long flags; unsigned long flags;
u32 data; u32 data;
...@@ -301,7 +301,7 @@ u32 ft1000_read_dpram_mag_32(struct net_device *dev, int offset) ...@@ -301,7 +301,7 @@ u32 ft1000_read_dpram_mag_32(struct net_device *dev, int offset)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void ft1000_write_dpram_mag_32(struct net_device *dev, int offset, u32 value) void ft1000_write_dpram_mag_32(struct net_device *dev, int offset, u32 value)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
unsigned long flags; unsigned long flags;
// Provide mutual exclusive access while reading ASIC registers. // Provide mutual exclusive access while reading ASIC registers.
...@@ -323,7 +323,7 @@ void ft1000_write_dpram_mag_32(struct net_device *dev, int offset, u32 value) ...@@ -323,7 +323,7 @@ void ft1000_write_dpram_mag_32(struct net_device *dev, int offset, u32 value)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static void ft1000_enable_interrupts(struct net_device *dev) static void ft1000_enable_interrupts(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 tempword; u16 tempword;
DEBUG(1, "ft1000_hw:ft1000_enable_interrupts()\n"); DEBUG(1, "ft1000_hw:ft1000_enable_interrupts()\n");
...@@ -348,7 +348,7 @@ static void ft1000_enable_interrupts(struct net_device *dev) ...@@ -348,7 +348,7 @@ static void ft1000_enable_interrupts(struct net_device *dev)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static void ft1000_disable_interrupts(struct net_device *dev) static void ft1000_disable_interrupts(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 tempword; u16 tempword;
DEBUG(1, "ft1000_hw: ft1000_disable_interrupts()\n"); DEBUG(1, "ft1000_hw: ft1000_disable_interrupts()\n");
...@@ -373,7 +373,7 @@ static void ft1000_disable_interrupts(struct net_device *dev) ...@@ -373,7 +373,7 @@ static void ft1000_disable_interrupts(struct net_device *dev)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static void ft1000_reset_asic(struct net_device *dev) static void ft1000_reset_asic(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 tempword; u16 tempword;
DEBUG(1, "ft1000_hw:ft1000_reset_asic called\n"); DEBUG(1, "ft1000_hw:ft1000_reset_asic called\n");
...@@ -417,7 +417,7 @@ static void ft1000_reset_asic(struct net_device *dev) ...@@ -417,7 +417,7 @@ static void ft1000_reset_asic(struct net_device *dev)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static int ft1000_reset_card(struct net_device *dev) static int ft1000_reset_card(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 tempword; u16 tempword;
int i; int i;
unsigned long flags; unsigned long flags;
...@@ -618,7 +618,7 @@ static void ft1000_hbchk(u_long data) ...@@ -618,7 +618,7 @@ static void ft1000_hbchk(u_long data)
{ {
struct net_device *dev = (struct net_device *)data; struct net_device *dev = (struct net_device *)data;
FT1000_INFO *info; struct ft1000_info *info;
USHORT tempword; USHORT tempword;
info = netdev_priv(dev); info = netdev_priv(dev);
...@@ -834,7 +834,7 @@ static void ft1000_hbchk(u_long data) ...@@ -834,7 +834,7 @@ static void ft1000_hbchk(u_long data)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void ft1000_send_cmd (struct net_device *dev, u16 *ptempbuffer, int size, u16 qtype) void ft1000_send_cmd (struct net_device *dev, u16 *ptempbuffer, int size, u16 qtype)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
int i; int i;
u16 tempword; u16 tempword;
unsigned long flags; unsigned long flags;
...@@ -919,7 +919,7 @@ void ft1000_send_cmd (struct net_device *dev, u16 *ptempbuffer, int size, u16 qt ...@@ -919,7 +919,7 @@ void ft1000_send_cmd (struct net_device *dev, u16 *ptempbuffer, int size, u16 qt
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
BOOLEAN ft1000_receive_cmd(struct net_device *dev, u16 * pbuffer, int maxsz, u16 *pnxtph) BOOLEAN ft1000_receive_cmd(struct net_device *dev, u16 * pbuffer, int maxsz, u16 *pnxtph)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 size; u16 size;
u16 *ppseudohdr; u16 *ppseudohdr;
int i; int i;
...@@ -1012,7 +1012,7 @@ BOOLEAN ft1000_receive_cmd(struct net_device *dev, u16 * pbuffer, int maxsz, u16 ...@@ -1012,7 +1012,7 @@ BOOLEAN ft1000_receive_cmd(struct net_device *dev, u16 * pbuffer, int maxsz, u16
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void ft1000_proc_drvmsg(struct net_device *dev) void ft1000_proc_drvmsg(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 msgtype; u16 msgtype;
u16 tempword; u16 tempword;
struct media_msg *pmediamsg; struct media_msg *pmediamsg;
...@@ -1295,7 +1295,7 @@ void ft1000_proc_drvmsg(struct net_device *dev) ...@@ -1295,7 +1295,7 @@ void ft1000_proc_drvmsg(struct net_device *dev)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int ft1000_parse_dpram_msg(struct net_device *dev) int ft1000_parse_dpram_msg(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 doorbell; u16 doorbell;
u16 portid; u16 portid;
u16 nxtph; u16 nxtph;
...@@ -1452,7 +1452,7 @@ int ft1000_parse_dpram_msg(struct net_device *dev) ...@@ -1452,7 +1452,7 @@ int ft1000_parse_dpram_msg(struct net_device *dev)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
static void ft1000_flush_fifo(struct net_device *dev, u16 DrvErrNum) static void ft1000_flush_fifo(struct net_device *dev, u16 DrvErrNum)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 i; u16 i;
u32 templong; u32 templong;
u16 tempword; u16 tempword;
...@@ -1599,7 +1599,7 @@ static void ft1000_flush_fifo(struct net_device *dev, u16 DrvErrNum) ...@@ -1599,7 +1599,7 @@ static void ft1000_flush_fifo(struct net_device *dev, u16 DrvErrNum)
int ft1000_copy_up_pkt(struct net_device *dev) int ft1000_copy_up_pkt(struct net_device *dev)
{ {
u16 tempword; u16 tempword;
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 len; u16 len;
struct sk_buff *skb; struct sk_buff *skb;
u16 i; u16 i;
...@@ -1786,7 +1786,7 @@ int ft1000_copy_up_pkt(struct net_device *dev) ...@@ -1786,7 +1786,7 @@ int ft1000_copy_up_pkt(struct net_device *dev)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int ft1000_copy_down_pkt(struct net_device *dev, u16 * packet, u16 len) int ft1000_copy_down_pkt(struct net_device *dev, u16 * packet, u16 len)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
union { union {
struct pseudo_hdr blk; struct pseudo_hdr blk;
u16 buff[sizeof(struct pseudo_hdr) >> 1]; u16 buff[sizeof(struct pseudo_hdr) >> 1];
...@@ -1946,7 +1946,7 @@ int ft1000_copy_down_pkt(struct net_device *dev, u16 * packet, u16 len) ...@@ -1946,7 +1946,7 @@ int ft1000_copy_down_pkt(struct net_device *dev, u16 * packet, u16 len)
static struct net_device_stats *ft1000_stats(struct net_device *dev) static struct net_device_stats *ft1000_stats(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
return (&info->stats); return (&info->stats);
} }
...@@ -1970,7 +1970,7 @@ static int ft1000_open(struct net_device *dev) ...@@ -1970,7 +1970,7 @@ static int ft1000_open(struct net_device *dev)
static int ft1000_close(struct net_device *dev) static int ft1000_close(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
DEBUG(0, "ft1000_hw: ft1000_close()\n"); DEBUG(0, "ft1000_hw: ft1000_close()\n");
...@@ -1992,7 +1992,7 @@ static int ft1000_close(struct net_device *dev) ...@@ -1992,7 +1992,7 @@ static int ft1000_close(struct net_device *dev)
static int ft1000_start_xmit(struct sk_buff *skb, struct net_device *dev) static int ft1000_start_xmit(struct sk_buff *skb, struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u8 *pdata; u8 *pdata;
DEBUG(1, "ft1000_hw: ft1000_start_xmit()\n"); DEBUG(1, "ft1000_hw: ft1000_start_xmit()\n");
...@@ -2029,7 +2029,7 @@ static int ft1000_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -2029,7 +2029,7 @@ static int ft1000_start_xmit(struct sk_buff *skb, struct net_device *dev)
static irqreturn_t ft1000_interrupt(int irq, void *dev_id) static irqreturn_t ft1000_interrupt(int irq, void *dev_id)
{ {
struct net_device *dev = (struct net_device *)dev_id; struct net_device *dev = (struct net_device *)dev_id;
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
u16 tempword; u16 tempword;
u16 inttype; u16 inttype;
int cnt; int cnt;
...@@ -2094,7 +2094,7 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id) ...@@ -2094,7 +2094,7 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id)
void stop_ft1000_card(struct net_device *dev) void stop_ft1000_card(struct net_device *dev)
{ {
FT1000_INFO *info = netdev_priv(dev); struct ft1000_info *info = netdev_priv(dev);
struct prov_record *ptr; struct prov_record *ptr;
// int cnt; // int cnt;
...@@ -2129,7 +2129,7 @@ void stop_ft1000_card(struct net_device *dev) ...@@ -2129,7 +2129,7 @@ void stop_ft1000_card(struct net_device *dev)
static void ft1000_get_drvinfo(struct net_device *dev, static void ft1000_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info) struct ethtool_drvinfo *info)
{ {
FT1000_INFO *ft_info; struct ft1000_info *ft_info;
ft_info = netdev_priv(dev); ft_info = netdev_priv(dev);
snprintf(info->driver, 32, "ft1000"); snprintf(info->driver, 32, "ft1000");
...@@ -2141,7 +2141,7 @@ static void ft1000_get_drvinfo(struct net_device *dev, ...@@ -2141,7 +2141,7 @@ static void ft1000_get_drvinfo(struct net_device *dev,
static u32 ft1000_get_link(struct net_device *dev) static u32 ft1000_get_link(struct net_device *dev)
{ {
FT1000_INFO *info; struct ft1000_info *info;
info = netdev_priv(dev); info = netdev_priv(dev);
return info->mediastate; return info->mediastate;
} }
...@@ -2154,7 +2154,7 @@ static const struct ethtool_ops ops = { ...@@ -2154,7 +2154,7 @@ static const struct ethtool_ops ops = {
struct net_device *init_ft1000_card(struct pcmcia_device *link, struct net_device *init_ft1000_card(struct pcmcia_device *link,
void *ft1000_reset) void *ft1000_reset)
{ {
FT1000_INFO *info; struct ft1000_info *info;
struct net_device *dev; struct net_device *dev;
static const struct net_device_ops ft1000ops = // Slavius 21.10.2009 due to kernel changes static const struct net_device_ops ft1000ops = // Slavius 21.10.2009 due to kernel changes
...@@ -2179,7 +2179,7 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link, ...@@ -2179,7 +2179,7 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link,
return NULL; return NULL;
} }
dev = alloc_etherdev(sizeof(FT1000_INFO)); dev = alloc_etherdev(sizeof(struct ft1000_info));
if (!dev) { if (!dev) {
printk(KERN_ERR "ft1000: failed to allocate etherdev\n"); printk(KERN_ERR "ft1000: failed to allocate etherdev\n");
return NULL; return NULL;
...@@ -2188,7 +2188,7 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link, ...@@ -2188,7 +2188,7 @@ struct net_device *init_ft1000_card(struct pcmcia_device *link,
SET_NETDEV_DEV(dev, &link->dev); SET_NETDEV_DEV(dev, &link->dev);
info = netdev_priv(dev); info = netdev_priv(dev);
memset(info, 0, sizeof(FT1000_INFO)); memset(info, 0, sizeof(struct ft1000_info));
DEBUG(1, "address of dev = 0x%8x\n", (u32) dev); DEBUG(1, "address of dev = 0x%8x\n", (u32) dev);
DEBUG(1, "address of dev info = 0x%8x\n", (u32) info); DEBUG(1, "address of dev info = 0x%8x\n", (u32) info);
......
...@@ -53,7 +53,7 @@ int ft1000ReadProc(char *page, char **start, off_t off, ...@@ -53,7 +53,7 @@ int ft1000ReadProc(char *page, char **start, off_t off,
struct net_device *dev; struct net_device *dev;
int len; int len;
int i; int i;
FT1000_INFO *info; struct ft1000_info *info;
char *status[] = char *status[] =
{ "Idle (Disconnect)", "Searching", "Active (Connected)", { "Idle (Disconnect)", "Searching", "Active (Connected)",
"Waiting for L2", "Sleep", "No Coverage", "", "" "Waiting for L2", "Sleep", "No Coverage", "", ""
...@@ -172,7 +172,7 @@ static int ft1000NotifyProc(struct notifier_block *this, unsigned long event, ...@@ -172,7 +172,7 @@ static int ft1000NotifyProc(struct notifier_block *this, unsigned long event,
void *ptr) void *ptr)
{ {
struct net_device *dev = ptr; struct net_device *dev = ptr;
FT1000_INFO *info; struct ft1000_info *info;
info = netdev_priv(dev); info = netdev_priv(dev);
...@@ -193,7 +193,7 @@ static struct notifier_block ft1000_netdev_notifier = { ...@@ -193,7 +193,7 @@ static struct notifier_block ft1000_netdev_notifier = {
void ft1000InitProc(struct net_device *dev) void ft1000InitProc(struct net_device *dev)
{ {
FT1000_INFO *info; struct ft1000_info *info;
info = netdev_priv(dev); info = netdev_priv(dev);
...@@ -206,7 +206,7 @@ void ft1000InitProc(struct net_device *dev) ...@@ -206,7 +206,7 @@ void ft1000InitProc(struct net_device *dev)
void ft1000CleanupProc(struct net_device *dev) void ft1000CleanupProc(struct net_device *dev)
{ {
FT1000_INFO *info; struct ft1000_info *info;
info = netdev_priv(dev); info = netdev_priv(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment