From: Jiri Slaby Date: Tue, 17 Feb 2009 11:38:36 +0000 (+0100) Subject: HID: fix bus endianity in file2alias X-Git-Tag: v3.0~10591^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b639386a2a26c84c8d26c649cf657ebd43a7bc8;p=platform%2Fkernel%2Flinux-amlogic.git HID: fix bus endianity in file2alias Fix endianness of bus member of hid_device_id in modpost. Signed-off-by: Jiri Slaby Reported-by: Nye Liu Cc: Jiri Kosina Signed-off-by: Jiri Kosina --- diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 491b8b1..4eea60b 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);