diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2010-11-27 10:50:54 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2010-12-16 10:41:12 +0100 |
commit | 8cde81001626c4c60b26ef2eb5fc522885ed9fd0 (patch) | |
tree | 9e9092cae44615376c5e3de98b8b259d137eb987 /drivers/input/touchscreen | |
parent | 47c78e891323513e9909729b44033e2c6649e2b7 (diff) | |
download | kernel_samsung_tuna-8cde81001626c4c60b26ef2eb5fc522885ed9fd0.zip kernel_samsung_tuna-8cde81001626c4c60b26ef2eb5fc522885ed9fd0.tar.gz kernel_samsung_tuna-8cde81001626c4c60b26ef2eb5fc522885ed9fd0.tar.bz2 |
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/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/wacom_w8001.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c index 5d4f50e..4a2e8cf 100644 --- a/drivers/input/touchscreen/wacom_w8001.c +++ b/drivers/input/touchscreen/wacom_w8001.c @@ -318,7 +318,7 @@ static int w8001_setup(struct w8001 *w8001) case 5: w8001->pktlen = W8001_PKTLEN_TOUCH2FG; - input_mt_create_slots(dev, 2); + input_mt_init_slots(dev, 2); input_set_abs_params(dev, ABS_MT_TRACKING_ID, 0, MAX_TRACKING_ID, 0, 0); input_set_abs_params(dev, ABS_MT_POSITION_X, |