summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kempin <denniskempin@chromium.org>2013-05-16 13:55:15 -0700
committerPeter Wu <lekensteyn@gmail.com>2013-09-04 22:28:56 +0200
commit782ad4a03ba58a98304e93673c0f0eb3839018a8 (patch)
treea92d59660b14b44c9e12f25dc529e7ef0c2231a4
parent4ddaed83a97fd877739bcef1110d9b6a10fc75cf (diff)
downloadlinux-782ad4a03ba58a98304e93673c0f0eb3839018a8.tar.gz
hid-logitech-wtp: Fixed bug which prevents TP from entering raw mode
The command ID has been fixed. BUG=chromium:240850 TEST=manual test with T650 Change-Id: I5dc4dbf82a781404403bc460642f04d0b5c2ddaa Signed-off-by: Dennis Kempin <denniskempin@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/51495 Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
-rw-r--r--drivers/hid/hid-logitech-wtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/hid-logitech-wtp.c b/drivers/hid/hid-logitech-wtp.c
index 2259aa67cc3d..6898e51d105e 100644
--- a/drivers/hid/hid-logitech-wtp.c
+++ b/drivers/hid/hid-logitech-wtp.c
@@ -195,9 +195,9 @@ static void generic_parse_mouse_button(struct hidpp_report *report,
*/
#define TPRXY_FEATURE 0x6100
-#define TPRXY_CMD_GET_TOUCHPAD_INFO (0x00 & SOFTWARE_ID)
-#define TPRXY_CMD_GET_RAW_REPORT_STATE (0x10 & SOFTWARE_ID)
-#define TPRXY_CMD_SET_RAW_REPORT_STATE (0x20 & SOFTWARE_ID)
+#define TPRXY_CMD_GET_TOUCHPAD_INFO (0x00 | SOFTWARE_ID)
+#define TPRXY_CMD_GET_RAW_REPORT_STATE (0x10 | SOFTWARE_ID)
+#define TPRXY_CMD_SET_RAW_REPORT_STATE (0x20 | SOFTWARE_ID)
#define TPRXY_EVENT_TOUCHPAD_RAW_TOUCH_POINTS 0x00
#define TPRXY_FORMAT_RAW 0x01