Skip to contentSkip to conversation

hid-magicmouse: delete the second input device

PATCH In review Benjamin Tissoires 1 participant 1 message Mar 8, 2010 HID

lore
Share & tools
lore
#0 lore raw

cover hid-magicmouse: delete the second input device

Hi,

in the current implementation of hid-magicmouse, the driver creates two input device. As the Magic Mouse does not reports at the connexion the fields of the multitouch part, the previous implementation creates a second device to report to the user space the other axes.

I manage to remove this second device by manually injecting the fields in the report created by the hid_register_report.

To do that, I had to export the function hid_register_field. This is the object of the first patch.
Then, in the second patch, I inject the fields in the report, thus removing the line containing 'report->size = 6;'
The last patch is just a cleanup.

Cheers,
Benjamin