Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH 1/2] Input - Wacom: Fix transfer header problem
@ 2014-07-26 11:59 Przemo Firszt
  2014-07-26 11:59 ` [PATCH 2/2] Input - wacom: Remove passing id for wacom_set_report Przemo Firszt
  2014-07-29 18:14 ` [PATCH 1/2] Input - Wacom: Fix transfer header problem Benjamin Tissoires
  0 siblings, 2 replies; 4+ messages in thread
From: Przemo Firszt @ 2014-07-26 11:59 UTC (permalink / raw)
  To: benjamin.tissoires
  Cc: dmitry.torokhov, jkosina, pinglinux, killertofu, linux-kernel,
	linux-input, Przemo Firszt

Header of transfer of image is different depending on connection type.
That patch should be probably merged with 462c52a8cbcc62c
Input - wacom: Check for bluetooth protocol while setting OLEDs

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
---
 drivers/hid/wacom_sys.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 42f139f..51437e2 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -19,6 +19,7 @@
 
 #define WAC_CMD_LED_CONTROL	0x20
 #define WAC_CMD_ICON_START	0x21
+#define WAC_CMD_ICON_BT_XFER	0x26
 #define WAC_CMD_ICON_XFER	0x23
 #define WAC_CMD_RETRIES		10
 
@@ -550,7 +551,7 @@ static int wacom_led_putimage(struct wacom *wacom, int button_id,
 	if (retval < 0)
 		goto out;
 
-	buf[0] = WAC_CMD_ICON_XFER;
+	buf[0] = len == 256 ? WAC_CMD_ICON_BT_XFER : WAC_CMD_ICON_XFER;
 	buf[1] = button_id & 0x07;
 	for (i = 0; i < 4; i++) {
 		buf[2] = i;
-- 
1.9.3

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-26 11:59 [PATCH 1/2] Input - Wacom: Fix transfer header problem Przemo Firszt
2014-07-26 11:59 ` [PATCH 2/2] Input - wacom: Remove passing id for wacom_set_report Przemo Firszt
2014-07-29 18:12   ` Benjamin Tissoires
2014-07-29 18:14 ` [PATCH 1/2] Input - Wacom: Fix transfer header problem Benjamin Tissoires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox