diff options
author | Chris Bagwell <chris@cnpbagwell.com> | 2010-09-12 03:09:27 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-09-12 03:13:27 -0400 |
commit | e1d38e49ad97eec5024342e1244279b645e36688 (patch) | |
tree | e5ee786fef4b3976e66a73cb0446911fc186f1bd /drivers/input | |
parent | 3dc9f40de4dddf9147b80cf15be633189a2b70f4 (diff) |
Input: wacom - move Bamboo Touch irq to its own function
This is in preparation of pen support in same irq handler.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/tablet/wacom_wac.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 2f4411aee305..2f7ed9a631b9 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c | |||
@@ -855,7 +855,7 @@ static int wacom_tpc_irq(struct wacom_wac *wacom, size_t len) | |||
855 | return retval; | 855 | return retval; |
856 | } | 856 | } |
857 | 857 | ||
858 | static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len) | 858 | static int wacom_bpt_touch(struct wacom_wac *wacom) |
859 | { | 859 | { |
860 | struct wacom_features *features = &wacom->features; | 860 | struct wacom_features *features = &wacom->features; |
861 | struct input_dev *input = wacom->input; | 861 | struct input_dev *input = wacom->input; |
@@ -863,9 +863,6 @@ static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len) | |||
863 | int sp = 0, sx = 0, sy = 0, count = 0; | 863 | int sp = 0, sx = 0, sy = 0, count = 0; |
864 | int i; | 864 | int i; |
865 | 865 | ||
866 | if (len != WACOM_PKGLEN_BBTOUCH) | ||
867 | return 0; | ||
868 | |||
869 | for (i = 0; i < 2; i++) { | 866 | for (i = 0; i < 2; i++) { |
870 | int p = data[9 * i + 2]; | 867 | int p = data[9 * i + 2]; |
871 | input_mt_slot(input, i); | 868 | input_mt_slot(input, i); |
@@ -907,6 +904,14 @@ static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len) | |||
907 | return 0; | 904 | return 0; |
908 | } | 905 | } |
909 | 906 | ||
907 | static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len) | ||
908 | { | ||
909 | if (len == WACOM_PKGLEN_BBTOUCH) | ||
910 | return wacom_bpt_touch(wacom); | ||
911 | |||
912 | return 0; | ||
913 | } | ||
914 | |||
910 | void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len) | 915 | void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len) |
911 | { | 916 | { |
912 | bool sync; | 917 | bool sync; |