From patchwork Tue Jul 5 23:25:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping Cheng X-Patchwork-Id: 947132 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p65NN0d8002015 for ; Tue, 5 Jul 2011 23:23:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752738Ab1GEXXf (ORCPT ); Tue, 5 Jul 2011 19:23:35 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:65079 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567Ab1GEXXf (ORCPT ); Tue, 5 Jul 2011 19:23:35 -0400 Received: by iyb12 with SMTP id 12so5629017iyb.19 for ; Tue, 05 Jul 2011 16:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=Z1kuwJh3zfulthh//niccZgqqIrvb6blgRhP79ZIs20=; b=pLVh2qTvTuHAopJ07DedPYAhicw9ltoAVWSxr5lff3Mc7FBBdjX1+ZB1Lf+lxBR8A1 7C0dRQ2oPSPnxyvNVNv0g1IECpCi9yuE2bo+GnQ/d15APPHLU44k/FeEbDPziqgfX8UD O/dL4vIfqZGnNqt+nYTs2F6Ngt0nluhFKWK1s= Received: by 10.231.117.201 with SMTP id s9mr7398873ibq.93.1309908214668; Tue, 05 Jul 2011 16:23:34 -0700 (PDT) Received: from localhost.localdomain ([67.51.163.10]) by mx.google.com with ESMTPS id ft12sm4496497ibb.2.2011.07.05.16.23.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jul 2011 16:23:34 -0700 (PDT) From: Ping Cheng To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, rydberg@euromail.se, Ping Cheng , Ping Cheng Subject: [PATCH 1/3 v2] input : wacom - Add serial number for Graphire4 and old Bamboo Date: Tue, 5 Jul 2011 16:25:04 -0700 Message-Id: <1309908304-18792-1-git-send-email-pinglinux@gmail.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 05 Jul 2011 23:23:36 +0000 (UTC) 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 --- drivers/input/tablet/wacom_wac.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 */ }