HID: logitech-hidpp: add input_device ptr to struct hidpp_device
authorHans de Goede <hdegoede@redhat.com>
Sat, 20 Apr 2019 11:22:13 +0000 (13:22 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 23 Apr 2019 16:02:57 +0000 (18:02 +0200)
commit0610430e3dea51c9a00565af685745898048fa2b
tree8dc2bbd9fc6f3b0a5ffe06ed9ce1518c417906de
parentd71b18f7c7999381a9b721d761b0aceffdcd65da
HID: logitech-hidpp: add input_device ptr to struct hidpp_device

Most device-class specific code needs access to the input_device, instead
of storing that in the class specific data-struct, simply store this into
the hidpp_device struct itself.

In case of the m560 this avoids the need for having private data at all
and this will also avoid the need to add private data in some upcoming
patches.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-hidpp.c