From patchwork Mon Dec 13 14:59:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 406592 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBDFAMcf019055 for ; Mon, 13 Dec 2010 15:10:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758004Ab0LMPJg (ORCPT ); Mon, 13 Dec 2010 10:09:36 -0500 Received: from 89-230.252-81.static-ip.oleane.fr ([81.252.230.89]:39625 "EHLO smtp.lii-enac.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757985Ab0LMPJe (ORCPT ); Mon, 13 Dec 2010 10:09:34 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 13 Dec 2010 15:10:23 +0000 (UTC) X-Greylist: delayed 625 seconds by postgrey-1.27 at vger.kernel.org; Mon, 13 Dec 2010 10:09:34 EST Received: from gloupti.lii-enac.fr (unknown [10.0.0.110]) by smtp.lii-enac.fr (DoorWays) with ESMTP id D9EA295226; Mon, 13 Dec 2010 15:59:06 +0100 (CET) From: Benjamin Tissoires To: Dmitry Torokhov , Jiri Kosina , Stephane Chatty , Henrik Rydberg , linux-input@vger.kernel.org Cc: Benjamin Tissoires Subject: [PATCH 1/2] hid-mosart: ignore buttons report Date: Mon, 13 Dec 2010 15:59:12 +0100 Message-Id: <1292252353-3029-2-git-send-email-benjamin.tissoires@enac.fr> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: <1292252353-3029-1-git-send-email-benjamin.tissoires@enac.fr> References: <1292252353-3029-1-git-send-email-benjamin.tissoires@enac.fr> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/hid/hid-mosart.c b/drivers/hid/hid-mosart.c index ac5421d..acd8a49 100644 --- a/drivers/hid/hid-mosart.c +++ b/drivers/hid/hid-mosart.c @@ -90,6 +90,10 @@ static int mosart_input_mapping(struct hid_device *hdev, struct hid_input *hi, case 0xff000000: /* ignore HID features */ return -1; + + case HID_UP_BUTTON: + /* ignore buttons */ + return -1; } return 0;