]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/input/tablet/wacom_sys.c
Merge branch 'for-2.6.34-rc1-batch2' into for-linus
[mv-sheeva.git] / drivers / input / tablet / wacom_sys.c
index f22b88d03c6c9d51f7558ae6e02f03e9d93e0d88..a1770e6feeecbce050078a8bdd6571aa9aab2018 100644 (file)
@@ -592,7 +592,17 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
        if (error)
                goto fail2;
 
-       input_dev->name = features->name;
+       strlcpy(wacom_wac->name, features->name, sizeof(wacom_wac->name));
+
+       if (features->type == TABLETPC || features->type == TABLETPC2FG) {
+               /* Append the device type to the name */
+               strlcat(wacom_wac->name,
+                       features->device_type == BTN_TOOL_PEN ?
+                               " Pen" : " Finger",
+                       sizeof(wacom_wac->name));
+       }
+
+       input_dev->name = wacom_wac->name;
        wacom->wacom_wac = wacom_wac;
 
        input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);