linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] input: wacom: Support up to 2048 pressure levels with ISDv4
@ 2014-06-30 21:46 Jason Gerecke
  2014-06-30 21:46 ` [PATCH 2/2] input: wacom: Add support for 0x12C ISDv4 sensor Jason Gerecke
  2014-07-18 23:12 ` [PATCH 1/2] input: wacom: Support up to 2048 pressure levels with ISDv4 Jason Gerecke
  0 siblings, 2 replies; 4+ messages in thread
From: Jason Gerecke @ 2014-06-30 21:46 UTC (permalink / raw)
  To: linux-input, pinglinux, dmitry.torokhov; +Cc: Jason Gerecke

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
---
 drivers/input/tablet/wacom_wac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 977d05c..61a45a5 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -1093,7 +1093,7 @@ static int wacom_tpc_pen(struct wacom_wac *wacom)
 		input_report_key(input, BTN_STYLUS2, data[1] & 0x10);
 		input_report_abs(input, ABS_X, le16_to_cpup((__le16 *)&data[2]));
 		input_report_abs(input, ABS_Y, le16_to_cpup((__le16 *)&data[4]));
-		input_report_abs(input, ABS_PRESSURE, ((data[7] & 0x03) << 8) | data[6]);
+		input_report_abs(input, ABS_PRESSURE, ((data[7] & 0x07) << 8) | data[6]);
 		input_report_key(input, BTN_TOUCH, data[1] & 0x05);
 		input_report_key(input, wacom->tool[0], prox);
 		return 1;
-- 
2.0.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-28 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-30 21:46 [PATCH 1/2] input: wacom: Support up to 2048 pressure levels with ISDv4 Jason Gerecke
2014-06-30 21:46 ` [PATCH 2/2] input: wacom: Add support for 0x12C ISDv4 sensor Jason Gerecke
2014-07-18 23:12 ` [PATCH 1/2] input: wacom: Support up to 2048 pressure levels with ISDv4 Jason Gerecke
2014-07-28 18:00   ` Dmitry Torokhov

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).