hid->group = HID_GROUP_SENSOR_HUB;
if (hid->vendor == USB_VENDOR_ID_MICROSOFT &&
------ - hid->product == USB_DEVICE_ID_MS_TYPE_COVER_3 &&
++++++ + (hid->product == USB_DEVICE_ID_MS_TYPE_COVER_3 ||
++++++ + hid->product == USB_DEVICE_ID_MS_TYPE_COVER_3_JP) &&
hid->group == HID_GROUP_MULTITOUCH)
hid->group = HID_GROUP_GENERIC;
+++++ ++
+++++ ++ if ((parser->global.usage_page << 16) == HID_UP_GENDESK)
+++++ ++ for (i = 0; i < parser->local.usage_index; i++)
+++++ ++ if (parser->local.usage[i] == HID_GD_POINTER)
+++++ ++ parser->scan_flags |= HID_SCAN_FLAG_GD_POINTER;
+++++ ++
+++++ ++ if ((parser->global.usage_page << 16) >= HID_UP_MSVENDOR)
+++++ ++ parser->scan_flags |= HID_SCAN_FLAG_VENDOR_SPECIFIC;
}
static int hid_scan_main(struct hid_parser *parser, struct hid_item *item)
static const struct hid_device_id hid_battery_quirks[] = {
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
- ------ USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO),
- ------ HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
+ ++++++ USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO),
+ ++++++ HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
+ ++++++ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
+ ++++++ USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ANSI),
+ ++++++ HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
++++++ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
- USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI),
+ ++++++ USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI),
++++++ HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
+ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
------ USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI),
+++++++ USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ISO),
+ HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI),
HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },