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
f354ef8a
Commit
f354ef8a
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] rename *_ANY_ID to PA_*_ANY_ID in the exported header
Signed-off-by:
Kyle McMartin
<
kyle@parisc-linux.org
>
parent
f3cf2673
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
include/asm-parisc/hardware.h
include/asm-parisc/hardware.h
+5
-0
include/linux/mod_devicetable.h
include/linux/mod_devicetable.h
+4
-4
scripts/mod/file2alias.c
scripts/mod/file2alias.c
+4
-4
No files found.
include/asm-parisc/hardware.h
View file @
f354ef8a
...
...
@@ -4,6 +4,11 @@
#include <linux/mod_devicetable.h>
#include <asm/pdc.h>
#define HWTYPE_ANY_ID PA_HWTYPE_ANY_ID
#define HVERSION_ANY_ID PA_HVERSION_ANY_ID
#define HVERSION_REV_ANY_ID PA_HVERSION_REV_ANY_ID
#define SVERSION_ANY_ID PA_SVERSION_ANY_ID
struct
hp_hardware
{
unsigned
short
hw_type
:
5
;
/* HPHW_xxx */
unsigned
short
hversion
;
...
...
include/linux/mod_devicetable.h
View file @
f354ef8a
...
...
@@ -327,9 +327,9 @@ struct parisc_device_id {
__u32
sversion
;
/* 20 bits */
};
#define
HWTYPE_ANY_ID
0xff
#define HVERSION_REV_ANY_ID 0xff
#define
HVERSION_ANY_ID
0xffff
#define
SVERSION_ANY_ID
0xffffffff
#define
PA_HWTYPE_ANY_ID
0xff
#define
PA_
HVERSION_REV_ANY_ID 0xff
#define
PA_HVERSION_ANY_ID
0xffff
#define
PA_SVERSION_ANY_ID
0xffffffff
#endif
/* LINUX_MOD_DEVICETABLE_H */
scripts/mod/file2alias.c
View file @
f354ef8a
...
...
@@ -462,10 +462,10 @@ static int do_parisc_entry(const char *filename, struct parisc_device_id *id,
id
->
sversion
=
TO_NATIVE
(
id
->
sversion
);
strcpy
(
alias
,
"parisc:"
);
ADD
(
alias
,
"t"
,
id
->
hw_type
!=
HWTYPE_ANY_ID
,
id
->
hw_type
);
ADD
(
alias
,
"hv"
,
id
->
hversion
!=
HVERSION_ANY_ID
,
id
->
hversion
);
ADD
(
alias
,
"rev"
,
id
->
hversion_rev
!=
HVERSION_REV_ANY_ID
,
id
->
hversion_rev
);
ADD
(
alias
,
"sv"
,
id
->
sversion
!=
SVERSION_ANY_ID
,
id
->
sversion
);
ADD
(
alias
,
"t"
,
id
->
hw_type
!=
PA_
HWTYPE_ANY_ID
,
id
->
hw_type
);
ADD
(
alias
,
"hv"
,
id
->
hversion
!=
PA_
HVERSION_ANY_ID
,
id
->
hversion
);
ADD
(
alias
,
"rev"
,
id
->
hversion_rev
!=
PA_
HVERSION_REV_ANY_ID
,
id
->
hversion_rev
);
ADD
(
alias
,
"sv"
,
id
->
sversion
!=
PA_
SVERSION_ANY_ID
,
id
->
sversion
);
return
1
;
}
...
...
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