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
d5ea0e7c
Commit
d5ea0e7c
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/pnp
parent
4cc76cec
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
29 deletions
+29
-29
drivers/pnp/driver.c
drivers/pnp/driver.c
+2
-2
drivers/pnp/isapnp/core.c
drivers/pnp/isapnp/core.c
+4
-4
drivers/pnp/isapnp/proc.c
drivers/pnp/isapnp/proc.c
+2
-2
drivers/pnp/pnpbios/core.c
drivers/pnp/pnpbios/core.c
+21
-21
No files found.
drivers/pnp/driver.c
View file @
d5ea0e7c
...
@@ -143,8 +143,8 @@ static int pnp_bus_match(struct device *dev, struct device_driver *drv)
...
@@ -143,8 +143,8 @@ static int pnp_bus_match(struct device *dev, struct device_driver *drv)
struct
bus_type
pnp_bus_type
=
{
struct
bus_type
pnp_bus_type
=
{
name:
"pnp"
,
.
name
=
"pnp"
,
match:
pnp_bus_match
,
.
match
=
pnp_bus_match
,
};
};
...
...
drivers/pnp/isapnp/core.c
View file @
d5ea0e7c
...
@@ -1055,10 +1055,10 @@ static int isapnp_disable_resources(struct pnp_dev *dev)
...
@@ -1055,10 +1055,10 @@ static int isapnp_disable_resources(struct pnp_dev *dev)
}
}
struct
pnp_protocol
isapnp_protocol
=
{
struct
pnp_protocol
isapnp_protocol
=
{
name:
"ISA Plug and Play"
,
.
name
=
"ISA Plug and Play"
,
get:
isapnp_get_resources
,
.
get
=
isapnp_get_resources
,
set:
isapnp_set_resources
,
.
set
=
isapnp_set_resources
,
disable:
isapnp_disable_resources
,
.
disable
=
isapnp_disable_resources
,
};
};
static
inline
int
isapnp_init_device_tree
(
void
)
static
inline
int
isapnp_init_device_tree
(
void
)
...
...
drivers/pnp/isapnp/proc.c
View file @
d5ea0e7c
...
@@ -88,8 +88,8 @@ static ssize_t isapnp_proc_bus_read(struct file *file, char *buf, size_t nbytes,
...
@@ -88,8 +88,8 @@ static ssize_t isapnp_proc_bus_read(struct file *file, char *buf, size_t nbytes,
static
struct
file_operations
isapnp_proc_bus_file_operations
=
static
struct
file_operations
isapnp_proc_bus_file_operations
=
{
{
llseek:
isapnp_proc_bus_lseek
,
.
llseek
=
isapnp_proc_bus_lseek
,
read:
isapnp_proc_bus_read
,
.
read
=
isapnp_proc_bus_read
,
};
};
static
int
isapnp_proc_attach_device
(
struct
pnp_dev
*
dev
)
static
int
isapnp_proc_attach_device
(
struct
pnp_dev
*
dev
)
...
...
drivers/pnp/pnpbios/core.c
View file @
d5ea0e7c
...
@@ -1293,29 +1293,29 @@ static int pnpbios_disable_resources(struct pnp_dev *dev)
...
@@ -1293,29 +1293,29 @@ static int pnpbios_disable_resources(struct pnp_dev *dev)
struct
pnp_cfg
*
config
=
kmalloc
(
sizeof
(
struct
pnp_cfg
),
GFP_KERNEL
);
struct
pnp_cfg
*
config
=
kmalloc
(
sizeof
(
struct
pnp_cfg
),
GFP_KERNEL
);
/* first we need to set everything to a disabled value */
/* first we need to set everything to a disabled value */
struct
pnp_port
port
=
{
struct
pnp_port
port
=
{
max:
0
,
.
max
=
0
,
min:
0
,
.
min
=
0
,
align:
0
,
.
align
=
0
,
size:
0
,
.
size
=
0
,
flags:
0
,
.
flags
=
0
,
pad:
0
,
.
pad
=
0
,
};
};
struct
pnp_mem
mem
=
{
struct
pnp_mem
mem
=
{
max:
0
,
.
max
=
0
,
min:
0
,
.
min
=
0
,
align:
0
,
.
align
=
0
,
size:
0
,
.
size
=
0
,
flags:
0
,
.
flags
=
0
,
pad:
0
,
.
pad
=
0
,
};
};
struct
pnp_dma
dma
=
{
struct
pnp_dma
dma
=
{
map:
0
,
.
map
=
0
,
flags:
0
,
.
flags
=
0
,
};
};
struct
pnp_irq
irq
=
{
struct
pnp_irq
irq
=
{
map:
0
,
.
map
=
0
,
flags:
0
,
.
flags
=
0
,
pad:
0
,
.
pad
=
0
,
};
};
int
i
;
int
i
;
struct
pnp_dev_node_info
node_info
;
struct
pnp_dev_node_info
node_info
;
...
@@ -1358,10 +1358,10 @@ static int pnpbios_disable_resources(struct pnp_dev *dev)
...
@@ -1358,10 +1358,10 @@ static int pnpbios_disable_resources(struct pnp_dev *dev)
/* PnP Layer support */
/* PnP Layer support */
static
struct
pnp_protocol
pnpbios_protocol
=
{
static
struct
pnp_protocol
pnpbios_protocol
=
{
name:
"Plug and Play BIOS"
,
.
name
=
"Plug and Play BIOS"
,
get:
pnpbios_get_resources
,
.
get
=
pnpbios_get_resources
,
set:
pnpbios_set_resources
,
.
set
=
pnpbios_set_resources
,
disable:
pnpbios_disable_resources
,
.
disable
=
pnpbios_disable_resources
,
};
};
static
int
inline
insert_device
(
struct
pnp_dev
*
dev
)
static
int
inline
insert_device
(
struct
pnp_dev
*
dev
)
...
...
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