diff options
author | Fengguang Wu <wfg@mail.ustc.edu.cn> | 2007-12-07 03:35:14 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-01-28 08:51:22 -0500 |
commit | 70d215c4a7dfbddc138a2dd726d8f80f3e6d2622 (patch) | |
tree | 68e38ea2f3f0df7a51b73e6d150b74a780c67a6e /include/linux/hid.h | |
parent | c4124c9b68bf8ecf1e8afedad3a22e18666cb6f3 (diff) |
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 *); | |||
526 | int hid_set_field(struct hid_field *, unsigned, __s32); | 526 | int hid_set_field(struct hid_field *, unsigned, __s32); |
527 | int hid_input_report(struct hid_device *, int type, u8 *, int, int); | 527 | int hid_input_report(struct hid_device *, int type, u8 *, int, int); |
528 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); | 528 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); |
529 | int hidinput_mapping_quirks(struct hid_usage *, struct input_dev *, unsigned long *, int *); | 529 | int hidinput_mapping_quirks(struct hid_usage *, struct input_dev *, unsigned long **, int *); |
530 | void hidinput_event_quirks(struct hid_device *, struct hid_field *, struct hid_usage *, __s32); | 530 | void hidinput_event_quirks(struct hid_device *, struct hid_field *, struct hid_usage *, __s32); |
531 | int hidinput_apple_event(struct hid_device *, struct input_dev *, struct hid_usage *, __s32); | 531 | int hidinput_apple_event(struct hid_device *, struct input_dev *, struct hid_usage *, __s32); |
532 | void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data, int interrupt); | 532 | void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data, int interrupt); |