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
13f77785
Commit
13f77785
authored
Feb 07, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: put proper field sizes on sysfs files, and add class file.
parent
3f97dd3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/pci/pci-sysfs.c
drivers/pci/pci-sysfs.c
+6
-4
No files found.
drivers/pci/pci-sysfs.c
View file @
13f77785
...
...
@@ -35,10 +35,11 @@ show_##field (struct device *dev, char *buf) \
} \
static DEVICE_ATTR(field, S_IRUGO, show_##field, NULL);
pci_config_attr
(
vendor
,
"%x
\n
"
);
pci_config_attr
(
device
,
"%x
\n
"
);
pci_config_attr
(
subsystem_vendor
,
"%x
\n
"
);
pci_config_attr
(
subsystem_device
,
"%x
\n
"
);
pci_config_attr
(
vendor
,
"%04x
\n
"
);
pci_config_attr
(
device
,
"%04x
\n
"
);
pci_config_attr
(
subsystem_vendor
,
"%04x
\n
"
);
pci_config_attr
(
subsystem_device
,
"%04x
\n
"
);
pci_config_attr
(
class
,
"%06x
\n
"
);
pci_config_attr
(
irq
,
"%u
\n
"
);
/* show resources */
...
...
@@ -69,6 +70,7 @@ void pci_create_sysfs_dev_files (struct pci_dev *pdev)
device_create_file
(
dev
,
&
dev_attr_device
);
device_create_file
(
dev
,
&
dev_attr_subsystem_vendor
);
device_create_file
(
dev
,
&
dev_attr_subsystem_device
);
device_create_file
(
dev
,
&
dev_attr_class
);
device_create_file
(
dev
,
&
dev_attr_irq
);
device_create_file
(
dev
,
&
dev_attr_resource
);
}
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