HID: logitech-hidpp: make hidpp10_set_register_bit a bit more generic
authorHans de Goede <hdegoede@redhat.com>
Sat, 20 Apr 2019 11:22:14 +0000 (13:22 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 23 Apr 2019 16:03:04 +0000 (18:03 +0200)
commit35839f77238bccb695696bb390732339d53b8062
tree2ebd2f30a56d446561f04fcfb3a6e9d8245e77ea
parent0610430e3dea51c9a00565af685745898048fa2b
HID: logitech-hidpp: make hidpp10_set_register_bit a bit more generic

Make hidpp10_set_register_bit() take a mask and value for the register
byte being changed, rather then making it only set a single bit.

While at it also at defines for the bits which we will be using.

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