diff options
author | Fengguang Wu <wfg@mail.ustc.edu.cn> | 2007-12-07 11:35:14 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-01-28 16:51:22 +0300 |
commit | 70d215c4a7dfbddc138a2dd726d8f80f3e6d2622 (patch) | |
tree | 68e38ea2f3f0df7a51b73e6d150b74a780c67a6e /include/linux/hid.h | |
parent | c4124c9b68bf8ecf1e8afedad3a22e18666cb6f3 (diff) | |
download | linux-70d215c4a7dfbddc138a2dd726d8f80f3e6d2622.tar.xz |
HID: the `bit' in hidinput_mapping_quirks() is an out parameter
Fix a panic, by changing
hidinput_mapping_quirks(,, unsigned long *bit,)
to
hidinput_mapping_quirks(,, unsigned long **bit,)
The `bit' in this function is an out parameter.
Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 24f04cd742de..6a70b788ee9c 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -526,7 +526,7 @@ extern void hidinput_disconnect(struct hid_device *); int hid_set_field(struct hid_field *, unsigned, __s32); int hid_input_report(struct hid_device *, int type, u8 *, int, int); int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); -int hidinput_mapping_quirks(struct hid_usage *, struct input_dev *, unsigned long *, int *); +int hidinput_mapping_quirks(struct hid_usage *, struct input_dev *, unsigned long **, int *); void hidinput_event_quirks(struct hid_device *, struct hid_field *, struct hid_usage *, __s32); int hidinput_apple_event(struct hid_device *, struct input_dev *, struct hid_usage *, __s32); void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data, int interrupt); |