summaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-02-17 12:38:36 +0100
committerJiri Kosina <jkosina@suse.cz>2009-02-17 13:25:01 +0100
commit2b639386a2a26c84c8d26c649cf657ebd43a7bc8 (patch)
treea14e5c3486d810a146242c5637812e5b241a4a6a /scripts/mod
parentdaedb3d6a91f9626ab4c921378ac52e44de833d5 (diff)
downloadlinux-2b639386a2a26c84c8d26c649cf657ebd43a7bc8.tar.bz2
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/mod')
-rw-r--r--scripts/mod/file2alias.c1
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,
static int do_hid_entry(const char *filename,
struct hid_device_id *id, char *alias)
{
+ id->bus = TO_NATIVE(id->bus);
id->vendor = TO_NATIVE(id->vendor);
id->product = TO_NATIVE(id->product);