mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
HID: Export hid_register_report
The Apple Magic Mouse (and probably other devices) publish reports that are not called out in their HID report descriptors -- they only send them when enabled through other writes to the device. This allows a driver to handle these unlisted reports. Signed-off-by: Michael Poole <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
342f31e84e
commit
90a006abf8
2 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ EXPORT_SYMBOL_GPL(hid_debug);
|
|||
* Register a new report for a device.
|
||||
*/
|
||||
|
||||
static struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id)
|
||||
struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id)
|
||||
{
|
||||
struct hid_report_enum *report_enum = device->report_enum + type;
|
||||
struct hid_report *report;
|
||||
|
|
@ -75,6 +75,7 @@ static struct hid_report *hid_register_report(struct hid_device *device, unsigne
|
|||
|
||||
return report;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(hid_register_report);
|
||||
|
||||
/*
|
||||
* Register a new field for this report.
|
||||
|
|
|
|||
Loading…
Reference in a new issue