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
Kirill Smelkov
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
Show 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,
...
@@ -867,13 +867,13 @@ static int ds_ioctl(struct inode * inode, struct file * file,
/*====================================================================*/
/*====================================================================*/
static
struct
file_operations
ds_fops
=
{
static
struct
file_operations
ds_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
open:
ds_open
,
.
open
=
ds_open
,
release:
ds_release
,
.
release
=
ds_release
,
ioctl:
ds_ioctl
,
.
ioctl
=
ds_ioctl
,
read:
ds_read
,
.
read
=
ds_read
,
write:
ds_write
,
.
write
=
ds_write
,
poll:
ds_poll
,
.
poll
=
ds_poll
,
};
};
EXPORT_SYMBOL
(
register_pccard_driver
);
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)
...
@@ -240,13 +240,13 @@ static void hs_end_irq(unsigned int irq)
static
struct
hw_interrupt_type
hd64465_ss_irq_type
=
{
static
struct
hw_interrupt_type
hd64465_ss_irq_type
=
{
typename:
"PCMCIA-IRQ"
,
.
typename
=
"PCMCIA-IRQ"
,
startup:
hs_startup_irq
,
.
startup
=
hs_startup_irq
,
shutdown:
hs_shutdown_irq
,
.
shutdown
=
hs_shutdown_irq
,
enable:
hs_enable_irq
,
.
enable
=
hs_enable_irq
,
disable:
hs_disable_irq
,
.
disable
=
hs_disable_irq
,
ack:
hs_mask_and_ack_irq
,
.
ack
=
hs_mask_and_ack_irq
,
end:
hs_end_irq
.
end
=
hs_end_irq
};
};
/*
/*
...
...
drivers/pcmcia/i82092.c
View file @
01c26cd4
...
@@ -32,41 +32,37 @@ MODULE_LICENSE("GPL");
...
@@ -32,41 +32,37 @@ MODULE_LICENSE("GPL");
/* PCI core routines */
/* PCI core routines */
static
struct
pci_device_id
i82092aa_pci_ids
[]
=
{
static
struct
pci_device_id
i82092aa_pci_ids
[]
=
{
{
{
vendor:
PCI_VENDOR_ID_INTEL
,
.
vendor
=
PCI_VENDOR_ID_INTEL
,
device:
PCI_DEVICE_ID_INTEL_82092AA_0
,
.
device
=
PCI_DEVICE_ID_INTEL_82092AA_0
,
subvendor:
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
subdevice:
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
class:
0
,
class_mask
:
0
,
},
},
{}
{}
};
};
MODULE_DEVICE_TABLE
(
pci
,
i82092aa_pci_ids
);
MODULE_DEVICE_TABLE
(
pci
,
i82092aa_pci_ids
);
static
struct
pci_driver
i82092aa_pci_drv
=
{
static
struct
pci_driver
i82092aa_pci_drv
=
{
name:
"i82092aa"
,
.
name
=
"i82092aa"
,
id_table:
i82092aa_pci_ids
,
.
id_table
=
i82092aa_pci_ids
,
probe:
i82092aa_pci_probe
,
.
probe
=
i82092aa_pci_probe
,
remove:
__devexit_p
(
i82092aa_pci_remove
),
.
remove
=
__devexit_p
(
i82092aa_pci_remove
),
suspend:
NULL
,
resume:
NULL
};
};
/* the pccard structure and its functions */
/* the pccard structure and its functions */
static
struct
pccard_operations
i82092aa_operations
=
{
static
struct
pccard_operations
i82092aa_operations
=
{
init:
i82092aa_init
,
.
init
=
i82092aa_init
,
suspend:
i82092aa_suspend
,
.
suspend
=
i82092aa_suspend
,
register_callback:
i82092aa_register_callback
,
.
register_callback
=
i82092aa_register_callback
,
inquire_socket:
i82092aa_inquire_socket
,
.
inquire_socket
=
i82092aa_inquire_socket
,
get_status:
i82092aa_get_status
,
.
get_status
=
i82092aa_get_status
,
get_socket:
i82092aa_get_socket
,
.
get_socket
=
i82092aa_get_socket
,
set_socket:
i82092aa_set_socket
,
.
set_socket
=
i82092aa_set_socket
,
get_io_map:
i82092aa_get_io_map
,
.
get_io_map
=
i82092aa_get_io_map
,
set_io_map:
i82092aa_set_io_map
,
.
set_io_map
=
i82092aa_set_io_map
,
get_mem_map:
i82092aa_get_mem_map
,
.
get_mem_map
=
i82092aa_get_mem_map
,
set_mem_map:
i82092aa_set_mem_map
,
.
set_mem_map
=
i82092aa_set_mem_map
,
proc_setup:
i82092aa_proc_setup
,
.
proc_setup
=
i82092aa_proc_setup
,
};
};
/* The card can do upto 4 sockets, allocate a structure for each of them */
/* 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)
...
@@ -235,24 +235,24 @@ static int cardbus_resume (struct pci_dev *dev)
static
struct
pci_device_id
cardbus_table
[]
__devinitdata
=
{
{
static
struct
pci_device_id
cardbus_table
[]
__devinitdata
=
{
{
class:
PCI_CLASS_BRIDGE_CARDBUS
<<
8
,
.
class
=
PCI_CLASS_BRIDGE_CARDBUS
<<
8
,
class_mask:
~
0
,
.
class_mask
=
~
0
,
vendor:
PCI_ANY_ID
,
.
vendor
=
PCI_ANY_ID
,
device:
PCI_ANY_ID
,
.
device
=
PCI_ANY_ID
,
subvendor:
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
subdevice:
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
/* all zeroes */
}
},
{
/* all zeroes */
}
};
};
MODULE_DEVICE_TABLE
(
pci
,
cardbus_table
);
MODULE_DEVICE_TABLE
(
pci
,
cardbus_table
);
static
struct
pci_driver
pci_cardbus_driver
=
{
static
struct
pci_driver
pci_cardbus_driver
=
{
name:
"cardbus"
,
.
name
=
"cardbus"
,
id_table:
cardbus_table
,
.
id_table
=
cardbus_table
,
probe:
cardbus_probe
,
.
probe
=
cardbus_probe
,
remove:
__devexit_p
(
cardbus_remove
),
.
remove
=
__devexit_p
(
cardbus_remove
),
suspend:
cardbus_suspend
,
.
suspend
=
cardbus_suspend
,
resume:
cardbus_resume
,
.
resume
=
cardbus_resume
,
};
};
static
int
__init
pci_socket_init
(
void
)
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