HID: Add Logitech Dinovo Edge battery quirk

The battery status is also being reported by the logitech-hidpp driver,
so ignore the standard HID battery status to avoid reporting the same
info twice.

Note the logitech-hidpp battery driver provides more info, such as properly
differentiating between charging and discharging. Also the standard HID
battery info seems to be wrong, reporting a capacity of just 26% after
fully charging the device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

authored by Hans de Goede and committed by Benjamin Tissoires 7940fb03 c27168a0

Changed files
+4
drivers
+1
drivers/hid/hid-ids.h
··· 750 750 #define USB_VENDOR_ID_LOGITECH 0x046d 751 751 #define USB_DEVICE_ID_LOGITECH_AUDIOHUB 0x0a0e 752 752 #define USB_DEVICE_ID_LOGITECH_T651 0xb00c 753 + #define USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD 0xb309 753 754 #define USB_DEVICE_ID_LOGITECH_C007 0xc007 754 755 #define USB_DEVICE_ID_LOGITECH_C077 0xc077 755 756 #define USB_DEVICE_ID_LOGITECH_RECEIVER 0xc101
+3
drivers/hid/hid-input.c
··· 319 319 { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ASUSTEK, 320 320 USB_DEVICE_ID_ASUSTEK_T100CHI_KEYBOARD), 321 321 HID_BATTERY_QUIRK_IGNORE }, 322 + { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 323 + USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD), 324 + HID_BATTERY_QUIRK_IGNORE }, 322 325 {} 323 326 }; 324 327