Skip to content
Snippets Groups Projects
Commit 2b639386 authored by Jiri Slaby's avatar Jiri Slaby Committed by Jiri Kosina
Browse files

HID: fix bus endianity in file2alias


Fix endianness of bus member of hid_device_id in modpost.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Reported-by: default avatarNye Liu <nyet@mrv.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent daedb3d6
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,7 @@ static void do_usb_table(void *symval, unsigned long size, ...@@ -210,6 +210,7 @@ static void do_usb_table(void *symval, unsigned long size,
static int do_hid_entry(const char *filename, static int do_hid_entry(const char *filename,
struct hid_device_id *id, char *alias) struct hid_device_id *id, char *alias)
{ {
id->bus = TO_NATIVE(id->bus);
id->vendor = TO_NATIVE(id->vendor); id->vendor = TO_NATIVE(id->vendor);
id->product = TO_NATIVE(id->product); id->product = TO_NATIVE(id->product);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment