diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-02-17 06:38:36 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-02-17 07:25:01 -0500 |
commit | 2b639386a2a26c84c8d26c649cf657ebd43a7bc8 (patch) | |
tree | a14e5c3486d810a146242c5637812e5b241a4a6a /scripts | |
parent | daedb3d6a91f9626ab4c921378ac52e44de833d5 (diff) |
HID: fix bus endianity in file2alias
Fix endianness of bus member of hid_device_id in modpost.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Reported-by: Nye Liu <nyet@mrv.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/file2alias.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 491b8b1b6abf..4eea60b1693e 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -210,6 +210,7 @@ static void do_usb_table(void *symval, unsigned long size, | |||
210 | static int do_hid_entry(const char *filename, | 210 | static int do_hid_entry(const char *filename, |
211 | struct hid_device_id *id, char *alias) | 211 | struct hid_device_id *id, char *alias) |
212 | { | 212 | { |
213 | id->bus = TO_NATIVE(id->bus); | ||
213 | id->vendor = TO_NATIVE(id->vendor); | 214 | id->vendor = TO_NATIVE(id->vendor); |
214 | id->product = TO_NATIVE(id->product); | 215 | id->product = TO_NATIVE(id->product); |
215 | 216 | ||