From 5d6b7867c8ab9f1d9af77ad9b6c752819e66db46 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Wed, 12 Dec 2012 20:18:00 -0800 Subject: [PATCH] compat: backport struct hid_device_id Kernels older than 2.6.28 did not have this defined. Add it. mcgrof@frijol ~/linux-next (git::master)$ git describe --contains e8c84f9a v2.6.28-rc1~571^2~54 commit e8c84f9a5f06912c94c38961096c994da3890a2e Author: Jiri Slaby Date: Mon May 19 15:50:01 2008 +0200 modpost: add support for hid Generate aliases for hid device modules to support autoloading. Signed-off-by: Jiri Slaby Signed-off-by: Jiri Kosina Signed-off-by: Luis R. Rodriguez --- include/linux/compat-2.6.28.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linux/compat-2.6.28.h b/include/linux/compat-2.6.28.h index 8df4e46149b2..b82a7eae7a94 100644 --- a/include/linux/compat-2.6.28.h +++ b/include/linux/compat-2.6.28.h @@ -11,6 +11,17 @@ #include #include #include +#include + +#define HID_ANY_ID (~0) + +struct hid_device_id { + __u16 bus; + __u32 vendor; + __u32 product; + kernel_ulong_t driver_data + __attribute__((aligned(sizeof(kernel_ulong_t)))); +}; #ifndef ETH_P_PAE #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ -- 2.30.2