Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318280
b: refs/heads/master
c: 6795a52
h: refs/heads/master
v: v3
  • Loading branch information
Ping Cheng authored and Dmitry Torokhov committed Jun 28, 2012
1 parent 20f814d commit c6b9a54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: adad004e1a50f8c64d9f116cd4934da937b51e27
refs/heads/master: 6795a524f0b049ceb5417d5036ab5e233345b900
6 changes: 4 additions & 2 deletions trunk/drivers/input/tablet/wacom_wac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1547,10 +1547,8 @@ int wacom_setup_input_capabilities(struct input_dev *input_dev,
__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
break;

case TABLETPC2FG:
case MTSCREEN:
if (features->device_type == BTN_TOOL_FINGER) {

wacom_wac->slots = kmalloc(features->touch_max *
sizeof(int),
GFP_KERNEL);
Expand All @@ -1559,7 +1557,11 @@ int wacom_setup_input_capabilities(struct input_dev *input_dev,

for (i = 0; i < features->touch_max; i++)
wacom_wac->slots[i] = -1;
}
/* fall through */

case TABLETPC2FG:
if (features->device_type == BTN_TOOL_FINGER) {
input_mt_init_slots(input_dev, features->touch_max);
input_set_abs_params(input_dev, ABS_MT_TOOL_TYPE,
0, MT_TOOL_MAX, 0, 0);
Expand Down

0 comments on commit c6b9a54

Please sign in to comment.