Re: [PATCH v4] hid-logitech-hidpp: read battery voltage from newer devices

2019-08-23 Thread Benjamin Tissoires
Hi Pedro, On Fri, Aug 23, 2019 at 5:51 PM Pedro Vanzella wrote: > > Newer Logitech mice report their battery voltage through feature 0x1001 > instead of the battery levels through feature 0x1000. > > When the device is brought up and we try to query the battery, figure > out if it supports the

[PATCH v4] hid-logitech-hidpp: read battery voltage from newer devices

2019-08-23 Thread Pedro Vanzella
Newer Logitech mice report their battery voltage through feature 0x1001 instead of the battery levels through feature 0x1000. When the device is brought up and we try to query the battery, figure out if it supports the old or the new feature. If it supports the new feature, record the feature