diff options
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 091a81cf330f..0efe80b59156 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -851,7 +851,7 @@ extern int hidinput_connect(struct hid_device *hid, unsigned int force); | |||
851 | extern void hidinput_disconnect(struct hid_device *); | 851 | extern void hidinput_disconnect(struct hid_device *); |
852 | 852 | ||
853 | int hid_set_field(struct hid_field *, unsigned, __s32); | 853 | int hid_set_field(struct hid_field *, unsigned, __s32); |
854 | int hid_input_report(struct hid_device *, int type, u8 *, int, int); | 854 | int hid_input_report(struct hid_device *, int type, u8 *, u32, int); |
855 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); | 855 | int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); |
856 | struct hid_field *hidinput_get_led_field(struct hid_device *hid); | 856 | struct hid_field *hidinput_get_led_field(struct hid_device *hid); |
857 | unsigned int hidinput_count_leds(struct hid_device *hid); | 857 | unsigned int hidinput_count_leds(struct hid_device *hid); |
@@ -1102,13 +1102,13 @@ static inline void hid_hw_wait(struct hid_device *hdev) | |||
1102 | * | 1102 | * |
1103 | * @report: the report we want to know the length | 1103 | * @report: the report we want to know the length |
1104 | */ | 1104 | */ |
1105 | static inline int hid_report_len(struct hid_report *report) | 1105 | static inline u32 hid_report_len(struct hid_report *report) |
1106 | { | 1106 | { |
1107 | /* equivalent to DIV_ROUND_UP(report->size, 8) + !!(report->id > 0) */ | 1107 | /* equivalent to DIV_ROUND_UP(report->size, 8) + !!(report->id > 0) */ |
1108 | return ((report->size - 1) >> 3) + 1 + (report->id > 0); | 1108 | return ((report->size - 1) >> 3) + 1 + (report->id > 0); |
1109 | } | 1109 | } |
1110 | 1110 | ||
1111 | int hid_report_raw_event(struct hid_device *hid, int type, u8 *data, int size, | 1111 | int hid_report_raw_event(struct hid_device *hid, int type, u8 *data, u32 size, |
1112 | int interrupt); | 1112 | int interrupt); |
1113 | 1113 | ||
1114 | /* HID quirks API */ | 1114 | /* HID quirks API */ |