aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-11-27 04:50:54 -0500
committerHenrik Rydberg <rydberg@euromail.se>2010-12-16 04:41:12 -0500
commit8cde81001626c4c60b26ef2eb5fc522885ed9fd0 (patch)
tree9e9092cae44615376c5e3de98b8b259d137eb987 /drivers/input/tablet
parent47c78e891323513e9909729b44033e2c6649e2b7 (diff)
input: mt: Collect slots initialization code
The MT slots devices all follow the same initialization pattern of creating slots and hinting about buffer size. Let drivers call an initialization function instead, and make sure it can be called repeatedly without side effects. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r--drivers/input/tablet/wacom_wac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index bde612c6d36d..f26e2238f6ca 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -1273,7 +1273,7 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
1273 __set_bit(BTN_TOOL_FINGER, input_dev->keybit); 1273 __set_bit(BTN_TOOL_FINGER, input_dev->keybit);
1274 __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit); 1274 __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit);
1275 1275
1276 input_mt_create_slots(input_dev, 2); 1276 input_mt_init_slots(input_dev, 2);
1277 input_set_abs_params(input_dev, ABS_MT_POSITION_X, 1277 input_set_abs_params(input_dev, ABS_MT_POSITION_X,
1278 0, features->x_max, 1278 0, features->x_max,
1279 features->x_fuzz, 0); 1279 features->x_fuzz, 0);