Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9b3a6b6a
Commit
9b3a6b6a
authored
Dec 15, 2002
by
Art Haas
Committed by
Linus Torvalds
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/net
parent
af91bc10
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
88 additions
and
88 deletions
+88
-88
drivers/net/82596.c
drivers/net/82596.c
+1
-1
drivers/net/appletalk/cops.c
drivers/net/appletalk/cops.c
+1
-1
drivers/net/e100/e100_main.c
drivers/net/e100/e100_main.c
+6
-6
drivers/net/e1000/e1000_param.c
drivers/net/e1000/e1000_param.c
+10
-10
drivers/net/fc/iph5526_scsi.h
drivers/net/fc/iph5526_scsi.h
+15
-15
drivers/net/irda/irda-usb.c
drivers/net/irda/irda-usb.c
+7
-7
drivers/net/irda/toshoboe.c
drivers/net/irda/toshoboe.c
+6
-6
drivers/net/irda/vlsi_ir.c
drivers/net/irda/vlsi_ir.c
+4
-4
drivers/net/lasi_82596.c
drivers/net/lasi_82596.c
+3
-3
drivers/net/ni65.c
drivers/net/ni65.c
+1
-1
drivers/net/pcnet32.c
drivers/net/pcnet32.c
+17
-17
drivers/net/rrunner.c
drivers/net/rrunner.c
+4
-4
drivers/net/seeq8005.c
drivers/net/seeq8005.c
+1
-1
drivers/net/sundance.c
drivers/net/sundance.c
+4
-4
drivers/net/sungem.c
drivers/net/sungem.c
+3
-3
drivers/net/sunhme.c
drivers/net/sunhme.c
+4
-4
drivers/net/wireless/orinoco_cs.c
drivers/net/wireless/orinoco_cs.c
+1
-1
No files found.
drivers/net/82596.c
View file @
9b3a6b6a
...
@@ -1525,7 +1525,7 @@ static void set_multicast_list(struct net_device *dev)
...
@@ -1525,7 +1525,7 @@ static void set_multicast_list(struct net_device *dev)
}
}
#ifdef MODULE
#ifdef MODULE
static
struct
net_device
dev_82596
=
{
init
:
i82596_probe
};
static
struct
net_device
dev_82596
=
{
.
init
=
i82596_probe
};
#ifdef ENABLE_APRICOT
#ifdef ENABLE_APRICOT
static
int
io
=
0x300
;
static
int
io
=
0x300
;
...
...
drivers/net/appletalk/cops.c
View file @
9b3a6b6a
...
@@ -1012,7 +1012,7 @@ static struct net_device_stats *cops_get_stats(struct net_device *dev)
...
@@ -1012,7 +1012,7 @@ static struct net_device_stats *cops_get_stats(struct net_device *dev)
}
}
#ifdef MODULE
#ifdef MODULE
static
struct
net_device
cops0_dev
=
{
init
:
cops_probe
};
static
struct
net_device
cops0_dev
=
{
.
init
=
cops_probe
};
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
io
,
"i"
);
MODULE_PARM
(
io
,
"i"
);
...
...
drivers/net/e100/e100_main.c
View file @
9b3a6b6a
...
@@ -145,17 +145,17 @@ static int e100_notify_reboot(struct notifier_block *, unsigned long event, void
...
@@ -145,17 +145,17 @@ static int e100_notify_reboot(struct notifier_block *, unsigned long event, void
static
int
e100_suspend
(
struct
pci_dev
*
pcid
,
u32
state
);
static
int
e100_suspend
(
struct
pci_dev
*
pcid
,
u32
state
);
static
int
e100_resume
(
struct
pci_dev
*
pcid
);
static
int
e100_resume
(
struct
pci_dev
*
pcid
);
struct
notifier_block
e100_notifier_reboot
=
{
struct
notifier_block
e100_notifier_reboot
=
{
notifier_call:
e100_notify_reboot
,
.
notifier_call
=
e100_notify_reboot
,
next:
NULL
,
.
next
=
NULL
,
priority:
0
.
priority
=
0
};
};
#endif
#endif
static
int
e100_notify_netdev
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
static
int
e100_notify_netdev
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
struct
notifier_block
e100_notifier_netdev
=
{
struct
notifier_block
e100_notifier_netdev
=
{
notifier_call:
e100_notify_netdev
,
.
notifier_call
=
e100_notify_netdev
,
next:
NULL
,
.
next
=
NULL
,
priority:
0
.
priority
=
0
};
};
static
void
e100_get_mdix_status
(
struct
e100_private
*
bdp
);
static
void
e100_get_mdix_status
(
struct
e100_private
*
bdp
);
...
...
drivers/net/e1000/e1000_param.c
View file @
9b3a6b6a
...
@@ -310,7 +310,7 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -310,7 +310,7 @@ e1000_check_options(struct e1000_adapter *adapter)
.
name
=
"Transmit Descriptors"
,
.
name
=
"Transmit Descriptors"
,
.
err
=
"using default of "
__MODULE_STRING
(
DEFAULT_TXD
),
.
err
=
"using default of "
__MODULE_STRING
(
DEFAULT_TXD
),
.
def
=
DEFAULT_TXD
,
.
def
=
DEFAULT_TXD
,
.
arg
=
{
r
:
{
min
:
MIN_TXD
}}
.
arg
=
{
.
r
=
{
.
min
=
MIN_TXD
}}
};
};
struct
e1000_desc_ring
*
tx_ring
=
&
adapter
->
tx_ring
;
struct
e1000_desc_ring
*
tx_ring
=
&
adapter
->
tx_ring
;
e1000_mac_type
mac_type
=
adapter
->
hw
.
mac_type
;
e1000_mac_type
mac_type
=
adapter
->
hw
.
mac_type
;
...
@@ -327,7 +327,7 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -327,7 +327,7 @@ e1000_check_options(struct e1000_adapter *adapter)
.
name
=
"Receive Descriptors"
,
.
name
=
"Receive Descriptors"
,
.
err
=
"using default of "
__MODULE_STRING
(
DEFAULT_RXD
),
.
err
=
"using default of "
__MODULE_STRING
(
DEFAULT_RXD
),
.
def
=
DEFAULT_RXD
,
.
def
=
DEFAULT_RXD
,
.
arg
=
{
r
:
{
min
:
MIN_RXD
}}
.
arg
=
{
.
r
=
{
.
min
=
MIN_RXD
}}
};
};
struct
e1000_desc_ring
*
rx_ring
=
&
adapter
->
rx_ring
;
struct
e1000_desc_ring
*
rx_ring
=
&
adapter
->
rx_ring
;
e1000_mac_type
mac_type
=
adapter
->
hw
.
mac_type
;
e1000_mac_type
mac_type
=
adapter
->
hw
.
mac_type
;
...
@@ -363,7 +363,7 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -363,7 +363,7 @@ e1000_check_options(struct e1000_adapter *adapter)
.
name
=
"Flow Control"
,
.
name
=
"Flow Control"
,
.
err
=
"reading default settings from EEPROM"
,
.
err
=
"reading default settings from EEPROM"
,
.
def
=
e1000_fc_default
,
.
def
=
e1000_fc_default
,
.
arg
=
{
l
:
{
nr
:
ARRAY_SIZE
(
fc_list
),
p
:
fc_list
}}
.
arg
=
{
.
l
=
{
.
nr
=
ARRAY_SIZE
(
fc_list
),
.
p
=
fc_list
}}
};
};
int
fc
=
FlowControl
[
bd
];
int
fc
=
FlowControl
[
bd
];
...
@@ -375,7 +375,7 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -375,7 +375,7 @@ e1000_check_options(struct e1000_adapter *adapter)
struct
e1000_option
opt
=
{
struct
e1000_option
opt
=
{
.
type
=
range_option
,
.
type
=
range_option
,
.
name
=
"Transmit Interrupt Delay"
,
.
name
=
"Transmit Interrupt Delay"
,
.
arg
=
{
r
:
{
min
:
MIN_TXDELAY
,
max
:
MAX_TXDELAY
}}
.
arg
=
{
.
r
=
{
.
min
=
MIN_TXDELAY
,
.
max
=
MAX_TXDELAY
}}
};
};
opt
.
def
=
DEFAULT_TIDV
;
opt
.
def
=
DEFAULT_TIDV
;
opt
.
err
=
tidv
;
opt
.
err
=
tidv
;
...
@@ -388,7 +388,7 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -388,7 +388,7 @@ e1000_check_options(struct e1000_adapter *adapter)
struct
e1000_option
opt
=
{
struct
e1000_option
opt
=
{
.
type
=
range_option
,
.
type
=
range_option
,
.
name
=
"Transmit Absolute Interrupt Delay"
,
.
name
=
"Transmit Absolute Interrupt Delay"
,
.
arg
=
{
r
:
{
min
:
MIN_TXABSDELAY
,
max
:
MAX_TXABSDELAY
}}
.
arg
=
{
.
r
=
{
.
min
=
MIN_TXABSDELAY
,
.
max
=
MAX_TXABSDELAY
}}
};
};
opt
.
def
=
DEFAULT_TADV
;
opt
.
def
=
DEFAULT_TADV
;
opt
.
err
=
tadv
;
opt
.
err
=
tadv
;
...
@@ -401,7 +401,7 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -401,7 +401,7 @@ e1000_check_options(struct e1000_adapter *adapter)
struct
e1000_option
opt
=
{
struct
e1000_option
opt
=
{
.
type
=
range_option
,
.
type
=
range_option
,
.
name
=
"Receive Interrupt Delay"
,
.
name
=
"Receive Interrupt Delay"
,
.
arg
=
{
r
:
{
min
:
MIN_RXDELAY
,
max
:
MAX_RXDELAY
}}
.
arg
=
{
.
r
=
{
.
min
=
MIN_RXDELAY
,
.
max
=
MAX_RXDELAY
}}
};
};
opt
.
def
=
DEFAULT_RDTR
;
opt
.
def
=
DEFAULT_RDTR
;
opt
.
err
=
rdtr
;
opt
.
err
=
rdtr
;
...
@@ -414,7 +414,7 @@ e1000_check_options(struct e1000_adapter *adapter)
...
@@ -414,7 +414,7 @@ e1000_check_options(struct e1000_adapter *adapter)
struct
e1000_option
opt
=
{
struct
e1000_option
opt
=
{
.
type
=
range_option
,
.
type
=
range_option
,
.
name
=
"Receive Absolute Interrupt Delay"
,
.
name
=
"Receive Absolute Interrupt Delay"
,
.
arg
=
{
r
:
{
min
:
MIN_RXABSDELAY
,
max
:
MAX_RXABSDELAY
}}
.
arg
=
{
.
r
=
{
.
min
=
MIN_RXABSDELAY
,
.
max
=
MAX_RXABSDELAY
}}
};
};
opt
.
def
=
DEFAULT_RADV
;
opt
.
def
=
DEFAULT_RADV
;
opt
.
err
=
radv
;
opt
.
err
=
radv
;
...
@@ -486,7 +486,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
...
@@ -486,7 +486,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
.
name
=
"Speed"
,
.
name
=
"Speed"
,
.
err
=
"parameter ignored"
,
.
err
=
"parameter ignored"
,
.
def
=
0
,
.
def
=
0
,
.
arg
=
{
l
:
{
nr
:
ARRAY_SIZE
(
speed_list
),
p
:
speed_list
}}
.
arg
=
{
.
l
=
{
.
nr
=
ARRAY_SIZE
(
speed_list
),
.
p
=
speed_list
}}
};
};
speed
=
Speed
[
bd
];
speed
=
Speed
[
bd
];
...
@@ -501,7 +501,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
...
@@ -501,7 +501,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
.
name
=
"Duplex"
,
.
name
=
"Duplex"
,
.
err
=
"parameter ignored"
,
.
err
=
"parameter ignored"
,
.
def
=
0
,
.
def
=
0
,
.
arg
=
{
l
:
{
nr
:
ARRAY_SIZE
(
dplx_list
),
p
:
dplx_list
}}
.
arg
=
{
.
l
=
{
.
nr
=
ARRAY_SIZE
(
dplx_list
),
.
p
=
dplx_list
}}
};
};
dplx
=
Duplex
[
bd
];
dplx
=
Duplex
[
bd
];
...
@@ -553,7 +553,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
...
@@ -553,7 +553,7 @@ e1000_check_copper_options(struct e1000_adapter *adapter)
.
name
=
"AutoNeg"
,
.
name
=
"AutoNeg"
,
.
err
=
"parameter ignored"
,
.
err
=
"parameter ignored"
,
.
def
=
AUTONEG_ADV_DEFAULT
,
.
def
=
AUTONEG_ADV_DEFAULT
,
.
arg
=
{
l
:
{
nr
:
ARRAY_SIZE
(
an_list
),
p
:
an_list
}}
.
arg
=
{
.
l
=
{
.
nr
=
ARRAY_SIZE
(
an_list
),
.
p
=
an_list
}}
};
};
int
an
=
AutoNeg
[
bd
];
int
an
=
AutoNeg
[
bd
];
...
...
drivers/net/fc/iph5526_scsi.h
View file @
9b3a6b6a
...
@@ -3,21 +3,21 @@
...
@@ -3,21 +3,21 @@
#define IPH5526_CAN_QUEUE 32
#define IPH5526_CAN_QUEUE 32
#define IPH5526_SCSI_FC { \
#define IPH5526_SCSI_FC { \
name:
"Interphase 5526 Fibre Channel SCSI Adapter", \
.name =
"Interphase 5526 Fibre Channel SCSI Adapter", \
detect:
iph5526_detect, \
.detect =
iph5526_detect, \
release:
iph5526_release, \
.release =
iph5526_release, \
info:
iph5526_info, \
.info =
iph5526_info, \
queuecommand:
iph5526_queuecommand, \
.queuecommand =
iph5526_queuecommand, \
bios_param:
iph5526_biosparam, \
.bios_param =
iph5526_biosparam, \
can_queue:
IPH5526_CAN_QUEUE, \
.can_queue =
IPH5526_CAN_QUEUE, \
this_id:
-1, \
.this_id =
-1, \
sg_tablesize:
255, \
.sg_tablesize =
255, \
cmd_per_lun:
8, \
.cmd_per_lun =
8, \
use_clustering:
DISABLE_CLUSTERING, \
.use_clustering =
DISABLE_CLUSTERING, \
eh_abort_handler:
iph5526_abort, \
.eh_abort_handler =
iph5526_abort, \
eh_device_reset_handler:
NULL, \
.eh_device_reset_handler =
NULL, \
eh_bus_reset_handler:
NULL, \
.eh_bus_reset_handler =
NULL, \
eh_host_reset_handler:
NULL, \
.eh_host_reset_handler =
NULL, \
}
}
int
iph5526_detect
(
Scsi_Host_Template
*
tmpt
);
int
iph5526_detect
(
Scsi_Host_Template
*
tmpt
);
...
...
drivers/net/irda/irda-usb.c
View file @
9b3a6b6a
...
@@ -75,16 +75,16 @@ static struct irda_usb_cb irda_instance[NIRUSB];
...
@@ -75,16 +75,16 @@ static struct irda_usb_cb irda_instance[NIRUSB];
/* These are the currently known IrDA USB dongles. Add new dongles here */
/* These are the currently known IrDA USB dongles. Add new dongles here */
static
struct
usb_device_id
dongles
[]
=
{
static
struct
usb_device_id
dongles
[]
=
{
/* ACTiSYS Corp, ACT-IR2000U FIR-USB Adapter */
/* ACTiSYS Corp, ACT-IR2000U FIR-USB Adapter */
{
USB_DEVICE
(
0x9c4
,
0x011
),
driver_info
:
IUC_SPEED_BUG
|
IUC_NO_WINDOW
},
{
USB_DEVICE
(
0x9c4
,
0x011
),
.
driver_info
=
IUC_SPEED_BUG
|
IUC_NO_WINDOW
},
/* KC Technology Inc., KC-180 USB IrDA Device */
/* KC Technology Inc., KC-180 USB IrDA Device */
{
USB_DEVICE
(
0x50f
,
0x180
),
driver_info
:
IUC_SPEED_BUG
|
IUC_NO_WINDOW
},
{
USB_DEVICE
(
0x50f
,
0x180
),
.
driver_info
=
IUC_SPEED_BUG
|
IUC_NO_WINDOW
},
/* Extended Systems, Inc., XTNDAccess IrDA USB (ESI-9685) */
/* Extended Systems, Inc., XTNDAccess IrDA USB (ESI-9685) */
{
USB_DEVICE
(
0x8e9
,
0x100
),
driver_info
:
IUC_SPEED_BUG
|
IUC_NO_WINDOW
},
{
USB_DEVICE
(
0x8e9
,
0x100
),
.
driver_info
=
IUC_SPEED_BUG
|
IUC_NO_WINDOW
},
{
match_flags
:
USB_DEVICE_ID_MATCH_INT_CLASS
|
{
.
match_flags
=
USB_DEVICE_ID_MATCH_INT_CLASS
|
USB_DEVICE_ID_MATCH_INT_SUBCLASS
,
USB_DEVICE_ID_MATCH_INT_SUBCLASS
,
bInterfaceClass:
USB_CLASS_APP_SPEC
,
.
bInterfaceClass
=
USB_CLASS_APP_SPEC
,
bInterfaceSubClass:
USB_CLASS_IRDA
,
.
bInterfaceSubClass
=
USB_CLASS_IRDA
,
driver_info:
IUC_DEFAULT
,
},
.
driver_info
=
IUC_DEFAULT
,
},
{
},
/* The end */
{
},
/* The end */
};
};
...
...
drivers/net/irda/toshoboe.c
View file @
9b3a6b6a
...
@@ -938,12 +938,12 @@ toshoboe_resume (struct pci_dev *pci_dev)
...
@@ -938,12 +938,12 @@ toshoboe_resume (struct pci_dev *pci_dev)
}
}
static
struct
pci_driver
toshoboe_pci_driver
=
{
static
struct
pci_driver
toshoboe_pci_driver
=
{
name
:
"toshoboe"
,
.
name
=
"toshoboe"
,
id_table
:
toshoboe_pci_tbl
,
.
id_table
=
toshoboe_pci_tbl
,
probe
:
toshoboe_probe
,
.
probe
=
toshoboe_probe
,
remove
:
toshoboe_remove
,
.
remove
=
toshoboe_remove
,
suspend
:
toshoboe_suspend
,
.
suspend
=
toshoboe_suspend
,
resume
:
toshoboe_resume
.
resume
=
toshoboe_resume
};
};
int
__init
int
__init
...
...
drivers/net/irda/vlsi_ir.c
View file @
9b3a6b6a
...
@@ -495,10 +495,10 @@ static int vlsi_proc_release(struct inode *inode, struct file *file)
...
@@ -495,10 +495,10 @@ static int vlsi_proc_release(struct inode *inode, struct file *file)
}
}
static
struct
file_operations
vlsi_proc_fops
=
{
static
struct
file_operations
vlsi_proc_fops
=
{
open:
vlsi_proc_open
,
.
open
=
vlsi_proc_open
,
llseek:
vlsi_proc_lseek
,
.
llseek
=
vlsi_proc_lseek
,
read:
vlsi_proc_read
,
.
read
=
vlsi_proc_read
,
release:
vlsi_proc_release
,
.
release
=
vlsi_proc_release
,
};
};
#endif
#endif
...
...
drivers/net/lasi_82596.c
View file @
9b3a6b6a
...
@@ -1565,9 +1565,9 @@ static struct parisc_device_id lan_tbl[] = {
...
@@ -1565,9 +1565,9 @@ static struct parisc_device_id lan_tbl[] = {
MODULE_DEVICE_TABLE
(
parisc
,
lan_tbl
);
MODULE_DEVICE_TABLE
(
parisc
,
lan_tbl
);
static
struct
parisc_driver
lan_driver
=
{
static
struct
parisc_driver
lan_driver
=
{
name:
"Apricot"
,
.
name
=
"Apricot"
,
id_table:
lan_tbl
,
.
id_table
=
lan_tbl
,
probe:
lan_init_chip
,
.
probe
=
lan_init_chip
,
};
};
static
int
__devinit
lasi_82596_init
(
void
)
static
int
__devinit
lasi_82596_init
(
void
)
...
...
drivers/net/ni65.c
View file @
9b3a6b6a
...
@@ -1210,7 +1210,7 @@ static void set_multicast_list(struct net_device *dev)
...
@@ -1210,7 +1210,7 @@ static void set_multicast_list(struct net_device *dev)
}
}
#ifdef MODULE
#ifdef MODULE
static
struct
net_device
dev_ni65
=
{
base_addr
:
0x360
,
irq
:
9
,
init
:
ni65_probe
};
static
struct
net_device
dev_ni65
=
{
.
base_addr
=
0x360
,
.
irq
=
9
,
.
init
=
ni65_probe
};
/* set: io,irq,dma or set it when calling insmod */
/* set: io,irq,dma or set it when calling insmod */
static
int
irq
;
static
int
irq
;
...
...
drivers/net/pcnet32.c
View file @
9b3a6b6a
...
@@ -392,13 +392,13 @@ static int pcnet32_wio_check (unsigned long addr)
...
@@ -392,13 +392,13 @@ static int pcnet32_wio_check (unsigned long addr)
}
}
static
struct
pcnet32_access
pcnet32_wio
=
{
static
struct
pcnet32_access
pcnet32_wio
=
{
read_csr:
pcnet32_wio_read_csr
,
.
read_csr
=
pcnet32_wio_read_csr
,
write_csr:
pcnet32_wio_write_csr
,
.
write_csr
=
pcnet32_wio_write_csr
,
read_bcr:
pcnet32_wio_read_bcr
,
.
read_bcr
=
pcnet32_wio_read_bcr
,
write_bcr:
pcnet32_wio_write_bcr
,
.
write_bcr
=
pcnet32_wio_write_bcr
,
read_rap:
pcnet32_wio_read_rap
,
.
read_rap
=
pcnet32_wio_read_rap
,
write_rap:
pcnet32_wio_write_rap
,
.
write_rap
=
pcnet32_wio_write_rap
,
reset:
pcnet32_wio_reset
.
reset
=
pcnet32_wio_reset
};
};
static
u16
pcnet32_dwio_read_csr
(
unsigned
long
addr
,
int
index
)
static
u16
pcnet32_dwio_read_csr
(
unsigned
long
addr
,
int
index
)
...
@@ -447,13 +447,13 @@ static int pcnet32_dwio_check (unsigned long addr)
...
@@ -447,13 +447,13 @@ static int pcnet32_dwio_check (unsigned long addr)
}
}
static
struct
pcnet32_access
pcnet32_dwio
=
{
static
struct
pcnet32_access
pcnet32_dwio
=
{
read_csr:
pcnet32_dwio_read_csr
,
.
read_csr
=
pcnet32_dwio_read_csr
,
write_csr:
pcnet32_dwio_write_csr
,
.
write_csr
=
pcnet32_dwio_write_csr
,
read_bcr:
pcnet32_dwio_read_bcr
,
.
read_bcr
=
pcnet32_dwio_read_bcr
,
write_bcr:
pcnet32_dwio_write_bcr
,
.
write_bcr
=
pcnet32_dwio_write_bcr
,
read_rap:
pcnet32_dwio_read_rap
,
.
read_rap
=
pcnet32_dwio_read_rap
,
write_rap:
pcnet32_dwio_write_rap
,
.
write_rap
=
pcnet32_dwio_write_rap
,
reset:
pcnet32_dwio_reset
.
reset
=
pcnet32_dwio_reset
};
};
...
@@ -1682,9 +1682,9 @@ static void pcnet32_watchdog(struct net_device *dev)
...
@@ -1682,9 +1682,9 @@ static void pcnet32_watchdog(struct net_device *dev)
}
}
static
struct
pci_driver
pcnet32_driver
=
{
static
struct
pci_driver
pcnet32_driver
=
{
name:
DRV_NAME
,
.
name
=
DRV_NAME
,
probe:
pcnet32_probe_pci
,
.
probe
=
pcnet32_probe_pci
,
id_table:
pcnet32_pci_tbl
,
.
id_table
=
pcnet32_pci_tbl
,
};
};
MODULE_PARM
(
debug
,
"i"
);
MODULE_PARM
(
debug
,
"i"
);
...
...
drivers/net/rrunner.c
View file @
9b3a6b6a
...
@@ -1761,10 +1761,10 @@ static struct pci_device_id rr_pci_tbl[] __devinitdata = {
...
@@ -1761,10 +1761,10 @@ static struct pci_device_id rr_pci_tbl[] __devinitdata = {
MODULE_DEVICE_TABLE
(
pci
,
rr_pci_tbl
);
MODULE_DEVICE_TABLE
(
pci
,
rr_pci_tbl
);
static
struct
pci_driver
rr_driver
=
{
static
struct
pci_driver
rr_driver
=
{
name:
"rrunner"
,
.
name
=
"rrunner"
,
id_table:
rr_pci_tbl
,
.
id_table
=
rr_pci_tbl
,
probe:
rr_init_one
,
.
probe
=
rr_init_one
,
remove:
rr_remove_one
,
.
remove
=
rr_remove_one
,
};
};
static
int
__init
rr_init_module
(
void
)
static
int
__init
rr_init_module
(
void
)
...
...
drivers/net/seeq8005.c
View file @
9b3a6b6a
...
@@ -707,7 +707,7 @@ inline void wait_for_buffer(struct net_device * dev)
...
@@ -707,7 +707,7 @@ inline void wait_for_buffer(struct net_device * dev)
#ifdef MODULE
#ifdef MODULE
static
struct
net_device
dev_seeq
=
{
init
:
seeq8005_probe
};
static
struct
net_device
dev_seeq
=
{
.
init
=
seeq8005_probe
};
static
int
io
=
0x320
;
static
int
io
=
0x320
;
static
int
irq
=
10
;
static
int
irq
=
10
;
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
...
...
drivers/net/sundance.c
View file @
9b3a6b6a
...
@@ -1753,10 +1753,10 @@ static void __devexit sundance_remove1 (struct pci_dev *pdev)
...
@@ -1753,10 +1753,10 @@ static void __devexit sundance_remove1 (struct pci_dev *pdev)
}
}
static
struct
pci_driver
sundance_driver
=
{
static
struct
pci_driver
sundance_driver
=
{
name:
DRV_NAME
,
.
name
=
DRV_NAME
,
id_table:
sundance_pci_tbl
,
.
id_table
=
sundance_pci_tbl
,
probe:
sundance_probe1
,
.
probe
=
sundance_probe1
,
remove:
__devexit_p
(
sundance_remove1
),
.
remove
=
__devexit_p
(
sundance_remove1
),
};
};
static
int
__init
sundance_init
(
void
)
static
int
__init
sundance_init
(
void
)
...
...
drivers/net/sungem.c
View file @
9b3a6b6a
...
@@ -2557,7 +2557,7 @@ static int gem_ethtool_ioctl(struct net_device *dev, void *ep_user)
...
@@ -2557,7 +2557,7 @@ static int gem_ethtool_ioctl(struct net_device *dev, void *ep_user)
switch
(
ecmd
.
cmd
)
{
switch
(
ecmd
.
cmd
)
{
case
ETHTOOL_GDRVINFO
:
{
case
ETHTOOL_GDRVINFO
:
{
struct
ethtool_drvinfo
info
=
{
cmd
:
ETHTOOL_GDRVINFO
};
struct
ethtool_drvinfo
info
=
{
.
cmd
=
ETHTOOL_GDRVINFO
};
strncpy
(
info
.
driver
,
DRV_NAME
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
driver
,
DRV_NAME
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
version
,
DRV_VERSION
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
version
,
DRV_VERSION
,
ETHTOOL_BUSINFO_LEN
);
...
@@ -2652,7 +2652,7 @@ static int gem_ethtool_ioctl(struct net_device *dev, void *ep_user)
...
@@ -2652,7 +2652,7 @@ static int gem_ethtool_ioctl(struct net_device *dev, void *ep_user)
/* get link status */
/* get link status */
case
ETHTOOL_GLINK
:
{
case
ETHTOOL_GLINK
:
{
struct
ethtool_value
edata
=
{
cmd
:
ETHTOOL_GLINK
};
struct
ethtool_value
edata
=
{
.
cmd
=
ETHTOOL_GLINK
};
edata
.
data
=
(
gp
->
lstate
==
link_up
);
edata
.
data
=
(
gp
->
lstate
==
link_up
);
if
(
copy_to_user
(
ep_user
,
&
edata
,
sizeof
(
edata
)))
if
(
copy_to_user
(
ep_user
,
&
edata
,
sizeof
(
edata
)))
...
@@ -2662,7 +2662,7 @@ static int gem_ethtool_ioctl(struct net_device *dev, void *ep_user)
...
@@ -2662,7 +2662,7 @@ static int gem_ethtool_ioctl(struct net_device *dev, void *ep_user)
/* get message-level */
/* get message-level */
case
ETHTOOL_GMSGLVL
:
{
case
ETHTOOL_GMSGLVL
:
{
struct
ethtool_value
edata
=
{
cmd
:
ETHTOOL_GMSGLVL
};
struct
ethtool_value
edata
=
{
.
cmd
=
ETHTOOL_GMSGLVL
};
edata
.
data
=
gp
->
msg_enable
;
edata
.
data
=
gp
->
msg_enable
;
if
(
copy_to_user
(
ep_user
,
&
edata
,
sizeof
(
edata
)))
if
(
copy_to_user
(
ep_user
,
&
edata
,
sizeof
(
edata
)))
...
...
drivers/net/sunhme.c
View file @
9b3a6b6a
...
@@ -181,10 +181,10 @@ static __inline__ void tx_dump_ring(struct happy_meal *hp)
...
@@ -181,10 +181,10 @@ static __inline__ void tx_dump_ring(struct happy_meal *hp)
struct
pci_device_id
happymeal_pci_ids
[]
__initdata
=
{
struct
pci_device_id
happymeal_pci_ids
[]
__initdata
=
{
{
{
vendor:
PCI_VENDOR_ID_SUN
,
.
vendor
=
PCI_VENDOR_ID_SUN
,
device:
PCI_DEVICE_ID_SUN_HAPPYMEAL
,
.
device
=
PCI_DEVICE_ID_SUN_HAPPYMEAL
,
subvendor:
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
subdevice:
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
},
{
}
/* Terminating entry */
{
}
/* Terminating entry */
};
};
...
...
drivers/net/wireless/orinoco_cs.c
View file @
9b3a6b6a
...
@@ -369,7 +369,7 @@ orinoco_cs_config(dev_link_t *link)
...
@@ -369,7 +369,7 @@ orinoco_cs_config(dev_link_t *link)
CS_CHECK
(
GetFirstTuple
,
handle
,
&
tuple
);
CS_CHECK
(
GetFirstTuple
,
handle
,
&
tuple
);
while
(
1
)
{
while
(
1
)
{
cistpl_cftable_entry_t
*
cfg
=
&
(
parse
.
cftable_entry
);
cistpl_cftable_entry_t
*
cfg
=
&
(
parse
.
cftable_entry
);
cistpl_cftable_entry_t
dflt
=
{
index
:
0
};
cistpl_cftable_entry_t
dflt
=
{
.
index
=
0
};
CFG_CHECK
(
GetTupleData
,
handle
,
&
tuple
);
CFG_CHECK
(
GetTupleData
,
handle
,
&
tuple
);
CFG_CHECK
(
ParseTuple
,
handle
,
&
tuple
,
&
parse
);
CFG_CHECK
(
ParseTuple
,
handle
,
&
tuple
,
&
parse
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment