Skip to contentSkip to conversation

HID: fix bus handling in scripts/mod/file2alias.c

PATCH In review [email protected] 2 participants 2 messages Feb 17, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: fix bus handling in scripts/mod/file2alias.c

From: Jiri Slaby <[email protected]>

Fix endianness of bus member of hid_device_id in modpost.

---
 scripts/mod/file2alias.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/mod/file2alias.c +1 -0
index 82a1011..a334428 100644
@@ -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);
 
Signature · 1 line
1.6.1.3
#1 lore raw
Quoted 16 lines · On Tue, 17 Feb 2009, [email protected] wrote:

From: Jiri Slaby <[email protected]>

Fix endianness of bus member of hid_device_id in modpost.

---
 scripts/mod/file2alias.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/mod/file2alias.c +0 -0
index 82a1011..a334428 100644

scripts/mod/file2alias.c static void do_usb_table(void *symval, unsigned long size, · line 215

Quoted 6 lines
scripts/mod/file2alias.c +1 -0
@@ -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);

Good catch, applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs