* [PATCH] HID: wacom: Use tablet-provided touch height/width values for INTUOSHT
@ 2015-08-18 0:41 Jason Gerecke
2015-08-18 13:17 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Jason Gerecke @ 2015-08-18 0:41 UTC (permalink / raw)
To: linux-input, Jiri Kosina
Cc: Ping Cheng, Aaron Skomra, Jason Gerecke, Jason Gerecke
The current generation of "Intuos" tablets (i.e. INTUOSHT) report touch
width and height data just like the "Intuos Pro" do. This commit changes
the code to allow these tablets to use the appropriate codepath instead
of the one intended for Intuos5/Bamboo.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
---
drivers/hid/wacom_wac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index fe164df..3024a3c 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -1772,7 +1772,7 @@ static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data)
int y = (data[3] << 4) | (data[4] & 0x0f);
int width, height;
- if (features->type >= INTUOSPS && features->type <= INTUOSPL) {
+ if (features->type >= INTUOSPS && features->type <= INTUOSHT) {
width = data[5] * 100;
height = data[6] * 100;
} else {
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: wacom: Use tablet-provided touch height/width values for INTUOSHT
2015-08-18 0:41 [PATCH] HID: wacom: Use tablet-provided touch height/width values for INTUOSHT Jason Gerecke
@ 2015-08-18 13:17 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2015-08-18 13:17 UTC (permalink / raw)
To: Jason Gerecke; +Cc: linux-input, Ping Cheng, Aaron Skomra, Jason Gerecke
On Mon, 17 Aug 2015, Jason Gerecke wrote:
> The current generation of "Intuos" tablets (i.e. INTUOSHT) report touch
> width and height data just like the "Intuos Pro" do. This commit changes
> the code to allow these tablets to use the appropriate codepath instead
> of the one intended for Intuos5/Bamboo.
>
> Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Applied to for-4.3/wacom.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-18 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18 0:41 [PATCH] HID: wacom: Use tablet-provided touch height/width values for INTUOSHT Jason Gerecke
2015-08-18 13:17 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).