From patchwork Wed Oct 13 13:58:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 250651 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 o9DE1K5L026939 for ; Wed, 13 Oct 2010 14:01:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753815Ab0JMOAe (ORCPT ); Wed, 13 Oct 2010 10:00:34 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:50935 "EHLO ch-smtp02.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752703Ab0JMOAb (ORCPT ); Wed, 13 Oct 2010 10:00:31 -0400 Received: from c83-248-196-134.bredband.comhem.se ([83.248.196.134]:57740 helo=alnilam) by ch-smtp02.sth.basefarm.net with smtp (Exim 4.68) (envelope-from ) id 1P61rX-00076t-8q; Wed, 13 Oct 2010 15:59:29 +0200 Received: by alnilam (sSMTP sendmail emulation); Wed, 13 Oct 2010 15:59:23 +0200 From: "Henrik Rydberg" To: Jiri Kosina Cc: Dmitry Torokhov , Philipp Merkel , Stephane Chatty , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Henrik Rydberg Subject: [PATCH 4/6] hid: egalax: Report zero as minimum pressure Date: Wed, 13 Oct 2010 15:58:20 +0200 Message-Id: <1286978302-30034-5-git-send-email-rydberg@euromail.se> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1286978302-30034-1-git-send-email-rydberg@euromail.se> References: <1286978302-30034-1-git-send-email-rydberg@euromail.se> X-Originating-IP: 83.248.196.134 X-Scan-Result: No virus found in message 1P61rX-00076t-8q. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1P61rX-00076t-8q fa791d5f350111384df4b3be89e29624 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.3 (demeter1.kernel.org [140.211.167.41]); Wed, 13 Oct 2010 14:01:21 +0000 (UTC) diff --git a/drivers/hid/hid-egalax.c b/drivers/hid/hid-egalax.c index 3b490a3..2aba897 100644 --- a/drivers/hid/hid-egalax.c +++ b/drivers/hid/hid-egalax.c @@ -93,6 +93,7 @@ static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi, input_set_events_per_packet(input, MAX_EVENTS); return 1; case HID_DG_TIPPRESSURE: + field->logical_minimum = 0; hid_map_usage(hi, usage, bit, max, EV_ABS, ABS_MT_PRESSURE); set_abs(input, ABS_MT_PRESSURE, field, 0);