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
a04b0605
Commit
a04b0605
authored
Jan 13, 2007
by
Kyle McMartin
Committed by
Kyle McMartin
Feb 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PARISC] display parisc device modalias in sysfs
Signed-off-by:
Kyle McMartin
<
kyle@parisc-linux.org
>
parent
3fe4c55e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
arch/parisc/kernel/drivers.c
arch/parisc/kernel/drivers.c
+11
-0
No files found.
arch/parisc/kernel/drivers.c
View file @
a04b0605
...
...
@@ -562,12 +562,23 @@ pa_dev_attr(rev, id.hversion_rev, "0x%x\n");
pa_dev_attr_id
(
hversion
,
"0x%03x
\n
"
);
pa_dev_attr_id
(
sversion
,
"0x%05x
\n
"
);
static
ssize_t
modalias_show
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
struct
parisc_device
*
padev
=
to_parisc_device
(
dev
);
struct
parisc_device_id
*
id
=
&
padev
->
id
;
return
sprintf
(
buf
,
"parisc:t%02Xhv%04Xrev%02Xsv%08X
\n
"
,
(
u8
)
id
->
hw_type
,
(
u16
)
id
->
hversion
,
(
u8
)
id
->
hversion_rev
,
(
u32
)
id
->
sversion
);
}
static
struct
device_attribute
parisc_device_attrs
[]
=
{
__ATTR_RO
(
irq
),
__ATTR_RO
(
hw_type
),
__ATTR_RO
(
rev
),
__ATTR_RO
(
hversion
),
__ATTR_RO
(
sversion
),
__ATTR_RO
(
modalias
),
__ATTR_NULL
,
};
...
...
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