hidraw: the report ID can be of arbitrary size

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2015-10-07 19:35:21 -04:00
parent 1175d69741
commit aacdb9923e
2 changed files with 3 additions and 3 deletions

View File

@@ -248,7 +248,7 @@ ratbag_open_hidraw(struct ratbag_device *device)
}
int
ratbag_hidraw_has_report(struct ratbag_device *device, uint8_t report_id)
ratbag_hidraw_has_report(struct ratbag_device *device, unsigned int report_id)
{
unsigned i;

View File

@@ -35,7 +35,7 @@
#define HID_FEATURE_REPORT 2
struct ratbag_hid_report {
uint8_t report_id;
unsigned int report_id;
};
struct ratbag_hidraw {
@@ -123,6 +123,6 @@ int ratbag_hidraw_read_input_report(struct ratbag_device *device, uint8_t *buf,
* @return 1 if the device has the given report id, 0 otherwise
*/
int
ratbag_hidraw_has_report(struct ratbag_device *device, uint8_t report_id);
ratbag_hidraw_has_report(struct ratbag_device *device, unsigned int report_id);
#endif /* LIBRATBAG_HIDRAW_H */