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 /include/linux/input | |
parent | 47c78e891323513e9909729b44033e2c6649e2b7 (diff) | |
download | op-kernel-dev-8cde81001626c4c60b26ef2eb5fc522885ed9fd0.zip op-kernel-dev-8cde81001626c4c60b26ef2eb5fc522885ed9fd0.tar.gz |
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 'include/linux/input')
-rw-r--r-- | include/linux/input/mt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/input/mt.h b/include/linux/input/mt.h index 4f5e9d0..d7f6518 100644 --- a/include/linux/input/mt.h +++ b/include/linux/input/mt.h @@ -33,7 +33,7 @@ static inline int input_mt_get_value(const struct input_mt_slot *slot, return slot->abs[code - ABS_MT_FIRST]; } -int input_mt_create_slots(struct input_dev *dev, unsigned int num_slots); +int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots); void input_mt_destroy_slots(struct input_dev *dev); static inline void input_mt_slot(struct input_dev *dev, int slot) |