Skip to content

Commit

Permalink
HID: fix hid_device_id for cross compiling
Browse files Browse the repository at this point in the history
struct hid_device_id contains hidden padding which is bad for cross
compiling.  Make the padding explicit and consistent across
architectures.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Andreas Schwab authored and Jiri Kosina committed Oct 28, 2008
1 parent b170060 commit 8175fe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/mod_devicetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ struct usb_device_id {

struct hid_device_id {
__u16 bus;
__u16 pad1;
__u32 vendor;
__u32 product;
kernel_ulong_t driver_data
Expand Down

0 comments on commit 8175fe2

Please sign in to comment.