From patchwork Wed Mar 9 12:28:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Kosina X-Patchwork-Id: 621211 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 p29CT2Z3014470 for ; Wed, 9 Mar 2011 12:29:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932208Ab1CIM3A (ORCPT ); Wed, 9 Mar 2011 07:29:00 -0500 Received: from cantor2.suse.de ([195.135.220.15]:33653 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932209Ab1CIM2u (ORCPT ); Wed, 9 Mar 2011 07:28:50 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id EFB765FC9F; Wed, 9 Mar 2011 13:28:48 +0100 (CET) Date: Wed, 9 Mar 2011 13:28:48 +0100 (CET) From: Jiri Kosina To: Benjamin Tissoires Cc: James Sharam , Greg KH , linux-input , stable@kernel.org Subject: Re: Commit c64f6f934c7490faff76faf96217066a1b3570a0 breaks my MosArt touchscreen In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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 (demeter1.kernel.org [140.211.167.41]); Wed, 09 Mar 2011 12:29:03 +0000 (UTC) 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;