wacom_sys.c (448cc2fb3a7b327823a9afd374808c37b8e6194f) wacom_sys.c (f83baa0cb6cfc92ebaf7f9d3a99d7e34f2e77a8a)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * drivers/input/tablet/wacom_sys.c
4 *
5 * USB Wacom tablet support - system specific code
6 */
7
8/*

--- 2200 unchanged lines hidden (view full) ---

2209 struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2210 struct wacom_features *features = &wacom_wac->features;
2211 char name[WACOM_NAME_MAX - 20]; /* Leave some room for suffixes */
2212
2213 /* Generic devices name unspecified */
2214 if ((features->type == HID_GENERIC) && !strcmp("Wacom HID", features->name)) {
2215 char *product_name = wacom->hdev->name;
2216
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * drivers/input/tablet/wacom_sys.c
4 *
5 * USB Wacom tablet support - system specific code
6 */
7
8/*

--- 2200 unchanged lines hidden (view full) ---

2209 struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2210 struct wacom_features *features = &wacom_wac->features;
2211 char name[WACOM_NAME_MAX - 20]; /* Leave some room for suffixes */
2212
2213 /* Generic devices name unspecified */
2214 if ((features->type == HID_GENERIC) && !strcmp("Wacom HID", features->name)) {
2215 char *product_name = wacom->hdev->name;
2216
2217 if (hid_is_using_ll_driver(wacom->hdev, &usb_hid_driver)) {
2217 if (hid_is_usb(wacom->hdev)) {
2218 struct usb_interface *intf = to_usb_interface(wacom->hdev->dev.parent);
2219 struct usb_device *dev = interface_to_usbdev(intf);
2220 product_name = dev->product;
2221 }
2222
2223 if (wacom->hdev->bus == BUS_I2C) {
2224 snprintf(name, sizeof(name), "%s %X",
2225 features->name, wacom->hdev->product);

--- 641 unchanged lines hidden ---
2218 struct usb_interface *intf = to_usb_interface(wacom->hdev->dev.parent);
2219 struct usb_device *dev = interface_to_usbdev(intf);
2220 product_name = dev->product;
2221 }
2222
2223 if (wacom->hdev->bus == BUS_I2C) {
2224 snprintf(name, sizeof(name), "%s %X",
2225 features->name, wacom->hdev->product);

--- 641 unchanged lines hidden ---