Patchwork HID: wacom: add missed stylus_in_proximity line back

login
register
mail settings
Submitter Ping Cheng
Date May 3, 2016, 4:17 a.m.
Message ID <1462249054-3515-1-git-send-email-pingc@wacom.com>
Download mbox | patch
Permalink /patch/9000131/
State New
Headers show

Comments

Ping Cheng - May 3, 2016, 4:17 a.m.
Patch 7e12978 removed stylus_in_proximity flag for Intuos series.

Signed-off-by: Ping Cheng <pingc@wacom.com>
---
 drivers/hid/wacom_wac.c | 1 +
 1 file changed, 1 insertion(+)
Jiri Kosina - May 3, 2016, 10:06 a.m.
On Mon, 2 May 2016, Ping Cheng wrote:

> Patch 7e12978 removed stylus_in_proximity flag for Intuos series.
> 
> Signed-off-by: Ping Cheng <pingc@wacom.com>

The changelog and metadata deserved some more love. I've fixed that up and 
applied to for-4.6/upstream-fixes.

Patch

diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index bd198bb..e3e4377 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -684,6 +684,7 @@  static int wacom_intuos_inout(struct wacom_wac *wacom)
 
 		wacom->tool[idx] = wacom_intuos_get_tool_type(wacom->id[idx]);
 
+		wacom->shared->stylus_in_proximity = true;
 		return 1;
 	}