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
2cf3f126
Commit
2cf3f126
authored
Mar 01, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI Hotplug: fix up the permission settings on a few of the sysfs files.
Thanks to Linda Xie for pointing this out.
parent
37c7e3f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/pci/hotplug/pci_hotplug_core.c
drivers/pci/hotplug/pci_hotplug_core.c
+4
-4
No files found.
drivers/pci/hotplug/pci_hotplug_core.c
View file @
2cf3f126
...
...
@@ -292,7 +292,7 @@ static ssize_t latch_read_file (struct hotplug_slot *slot, char *buf)
}
static
struct
hotplug_slot_attribute
hotplug_slot_attr_latch
=
{
.
attr
=
{.
name
=
"latch"
,
.
mode
=
S_IFREG
|
S_IRUGO
|
S_IWUSR
},
.
attr
=
{.
name
=
"latch"
,
.
mode
=
S_IFREG
|
S_IRUGO
},
.
show
=
latch_read_file
,
};
...
...
@@ -311,7 +311,7 @@ static ssize_t presence_read_file (struct hotplug_slot *slot, char *buf)
}
static
struct
hotplug_slot_attribute
hotplug_slot_attr_presence
=
{
.
attr
=
{.
name
=
"adapter"
,
.
mode
=
S_IFREG
|
S_IRUGO
|
S_IWUSR
},
.
attr
=
{.
name
=
"adapter"
,
.
mode
=
S_IFREG
|
S_IRUGO
},
.
show
=
presence_read_file
,
};
...
...
@@ -361,7 +361,7 @@ static ssize_t max_bus_speed_read_file (struct hotplug_slot *slot, char *buf)
}
static
struct
hotplug_slot_attribute
hotplug_slot_attr_max_bus_speed
=
{
.
attr
=
{.
name
=
"max_bus_speed"
,
.
mode
=
S_IFREG
|
S_IRUGO
|
S_IWUSR
},
.
attr
=
{.
name
=
"max_bus_speed"
,
.
mode
=
S_IFREG
|
S_IRUGO
},
.
show
=
max_bus_speed_read_file
,
};
...
...
@@ -387,7 +387,7 @@ static ssize_t cur_bus_speed_read_file (struct hotplug_slot *slot, char *buf)
}
static
struct
hotplug_slot_attribute
hotplug_slot_attr_cur_bus_speed
=
{
.
attr
=
{.
name
=
"cur_bus_speed"
,
.
mode
=
S_IFREG
|
S_IRUGO
|
S_IWUSR
},
.
attr
=
{.
name
=
"cur_bus_speed"
,
.
mode
=
S_IFREG
|
S_IRUGO
},
.
show
=
cur_bus_speed_read_file
,
};
...
...
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