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
01c26cd4
Commit
01c26cd4
authored
Nov 17, 2002
by
Art Haas
Committed by
David S. Miller
Nov 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/pcmcia
parent
a61dafcd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
50 deletions
+46
-50
drivers/pcmcia/ds.c
drivers/pcmcia/ds.c
+7
-7
drivers/pcmcia/hd64465_ss.c
drivers/pcmcia/hd64465_ss.c
+7
-7
drivers/pcmcia/i82092.c
drivers/pcmcia/i82092.c
+20
-24
drivers/pcmcia/pci_socket.c
drivers/pcmcia/pci_socket.c
+12
-12
No files found.
drivers/pcmcia/ds.c
View file @
01c26cd4
...
...
@@ -867,13 +867,13 @@ static int ds_ioctl(struct inode * inode, struct file * file,
/*====================================================================*/
static
struct
file_operations
ds_fops
=
{
owner:
THIS_MODULE
,
open:
ds_open
,
release:
ds_release
,
ioctl:
ds_ioctl
,
read:
ds_read
,
write:
ds_write
,
poll:
ds_poll
,
.
owner
=
THIS_MODULE
,
.
open
=
ds_open
,
.
release
=
ds_release
,
.
ioctl
=
ds_ioctl
,
.
read
=
ds_read
,
.
write
=
ds_write
,
.
poll
=
ds_poll
,
};
EXPORT_SYMBOL
(
register_pccard_driver
);
...
...
drivers/pcmcia/hd64465_ss.c
View file @
01c26cd4
...
...
@@ -240,13 +240,13 @@ static void hs_end_irq(unsigned int irq)
static
struct
hw_interrupt_type
hd64465_ss_irq_type
=
{
typename:
"PCMCIA-IRQ"
,
startup:
hs_startup_irq
,
shutdown:
hs_shutdown_irq
,
enable:
hs_enable_irq
,
disable:
hs_disable_irq
,
ack:
hs_mask_and_ack_irq
,
end:
hs_end_irq
.
typename
=
"PCMCIA-IRQ"
,
.
startup
=
hs_startup_irq
,
.
shutdown
=
hs_shutdown_irq
,
.
enable
=
hs_enable_irq
,
.
disable
=
hs_disable_irq
,
.
ack
=
hs_mask_and_ack_irq
,
.
end
=
hs_end_irq
};
/*
...
...
drivers/pcmcia/i82092.c
View file @
01c26cd4
...
...
@@ -32,41 +32,37 @@ MODULE_LICENSE("GPL");
/* PCI core routines */
static
struct
pci_device_id
i82092aa_pci_ids
[]
=
{
{
vendor:
PCI_VENDOR_ID_INTEL
,
device:
PCI_DEVICE_ID_INTEL_82092AA_0
,
subvendor:
PCI_ANY_ID
,
subdevice:
PCI_ANY_ID
,
class:
0
,
class_mask
:
0
,
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_82092AA_0
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{}
};
MODULE_DEVICE_TABLE
(
pci
,
i82092aa_pci_ids
);
static
struct
pci_driver
i82092aa_pci_drv
=
{
name:
"i82092aa"
,
id_table:
i82092aa_pci_ids
,
probe:
i82092aa_pci_probe
,
remove:
__devexit_p
(
i82092aa_pci_remove
),
suspend:
NULL
,
resume:
NULL
.
name
=
"i82092aa"
,
.
id_table
=
i82092aa_pci_ids
,
.
probe
=
i82092aa_pci_probe
,
.
remove
=
__devexit_p
(
i82092aa_pci_remove
),
};
/* the pccard structure and its functions */
static
struct
pccard_operations
i82092aa_operations
=
{
init:
i82092aa_init
,
suspend:
i82092aa_suspend
,
register_callback:
i82092aa_register_callback
,
inquire_socket:
i82092aa_inquire_socket
,
get_status:
i82092aa_get_status
,
get_socket:
i82092aa_get_socket
,
set_socket:
i82092aa_set_socket
,
get_io_map:
i82092aa_get_io_map
,
set_io_map:
i82092aa_set_io_map
,
get_mem_map:
i82092aa_get_mem_map
,
set_mem_map:
i82092aa_set_mem_map
,
proc_setup:
i82092aa_proc_setup
,
.
init
=
i82092aa_init
,
.
suspend
=
i82092aa_suspend
,
.
register_callback
=
i82092aa_register_callback
,
.
inquire_socket
=
i82092aa_inquire_socket
,
.
get_status
=
i82092aa_get_status
,
.
get_socket
=
i82092aa_get_socket
,
.
set_socket
=
i82092aa_set_socket
,
.
get_io_map
=
i82092aa_get_io_map
,
.
set_io_map
=
i82092aa_set_io_map
,
.
get_mem_map
=
i82092aa_get_mem_map
,
.
set_mem_map
=
i82092aa_set_mem_map
,
.
proc_setup
=
i82092aa_proc_setup
,
};
/* The card can do upto 4 sockets, allocate a structure for each of them */
...
...
drivers/pcmcia/pci_socket.c
View file @
01c26cd4
...
...
@@ -235,24 +235,24 @@ static int cardbus_resume (struct pci_dev *dev)
static
struct
pci_device_id
cardbus_table
[]
__devinitdata
=
{
{
class:
PCI_CLASS_BRIDGE_CARDBUS
<<
8
,
class_mask:
~
0
,
.
class
=
PCI_CLASS_BRIDGE_CARDBUS
<<
8
,
.
class_mask
=
~
0
,
vendor:
PCI_ANY_ID
,
device:
PCI_ANY_ID
,
subvendor:
PCI_ANY_ID
,
subdevice:
PCI_ANY_ID
,
.
vendor
=
PCI_ANY_ID
,
.
device
=
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
/* all zeroes */
}
};
MODULE_DEVICE_TABLE
(
pci
,
cardbus_table
);
static
struct
pci_driver
pci_cardbus_driver
=
{
name:
"cardbus"
,
id_table:
cardbus_table
,
probe:
cardbus_probe
,
remove:
__devexit_p
(
cardbus_remove
),
suspend:
cardbus_suspend
,
resume:
cardbus_resume
,
.
name
=
"cardbus"
,
.
id_table
=
cardbus_table
,
.
probe
=
cardbus_probe
,
.
remove
=
__devexit_p
(
cardbus_remove
),
.
suspend
=
cardbus_suspend
,
.
resume
=
cardbus_resume
,
};
static
int
__init
pci_socket_init
(
void
)
...
...
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