From: Ping Cheng Date: Thu, 29 May 2014 07:08:20 +0000 (-0700) Subject: Input: wacom - set stylus_in_proximity when pen is in range X-Git-Tag: v4.14-rc1~4^2~697 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=805a876af7261cbe11498ae544add0bc8ad74192;p=platform%2Fkernel%2Flinux-rpi3.git Input: wacom - set stylus_in_proximity when pen is in range Signed-off-by: Ping Cheng Reviewed-by: Jason Gerecke Tested-by: Jason Gerecke Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 24c0733..c98e51c 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -484,6 +484,8 @@ static int wacom_intuos_inout(struct wacom_wac *wacom) input_report_key(input, BTN_TOUCH, 0); input_report_abs(input, ABS_PRESSURE, 0); input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max); + if (features->quirks & WACOM_QUIRK_MULTI_INPUT) + wacom->shared->stylus_in_proximity = true; } /* Exit report */