Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183135
b: refs/heads/master
c: 49b764a
h: refs/heads/master
i:
  183133: 7a2cd71
  183131: 45e4972
  183127: a905659
  183119: 7e9ea27
  183103: 23a2060
v: v3
  • Loading branch information
Ping Cheng authored and Dmitry Torokhov committed Feb 20, 2010
1 parent 4dceeeb commit 81c007c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23c239be223d7427da51656d6f196bde965d9796
refs/heads/master: 49b764aebde6ceea393f56cd3449bfa5720f8383
12 changes: 11 additions & 1 deletion trunk/drivers/input/tablet/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/input/tablet/wacom_wac.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ struct wacom_features {
};

struct wacom_wac {
char name[64];
unsigned char *data;
int tool[2];
int id[2];
__u32 serial[2];
int tool[2];
int id[2];
__u32 serial[2];
struct wacom_features features;
};

Expand Down

0 comments on commit 81c007c

Please sign in to comment.