HID: logitech-hidpp: make sure we only register one battery per device
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 27 Mar 2017 14:59:23 +0000 (16:59 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 6 Apr 2017 12:36:36 +0000 (14:36 +0200)
commit680de741e835d56e504997b613895058625291e9
tree5bae5f9c5df0a3fb648c34734ec785f8d6add2db
parent3861e6ca305c5262f0493e9141f0c52ba066a447
HID: logitech-hidpp: make sure we only register one battery per device

Simple check to add, huge improvement :)

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c