From: Ping Cheng Date: Thu, 7 Jul 2011 01:05:41 +0000 (-0700) Subject: Input: wacom - add serial number for Graphire4 and old Bamboo X-Git-Tag: upstream/snapshot3+hdmi~3244^2~204^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=998c454e1c850f8e5cc0ae2299c4789b395d6d98;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Input: wacom - add serial number for Graphire4 and old Bamboo With the removal of BTN_TOOL_FINGER for tablet buttons and expresskeys, serial number is needed to distingush if the events were from a regular tool (stylus, eraser, or mouse) or the attribures (buttons, strips, or wheels) on the tablet since there are overlapped events between the tools and the tablet attributes. Signed-off-by: Ping Cheng Reviewed-by: Chris Bagwell Reviewed-by: Henrik Rydberg Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 7ce1294..b93501a 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -265,6 +265,7 @@ static int wacom_graphire_irq(struct wacom_wac *wacom) wacom->id[0] = 0; input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */ input_report_key(input, wacom->tool[0], prox); + input_event(input, EV_MSC, MSC_SERIAL, 1); input_sync(input); /* sync last event */ }