From patchwork Mon Nov 29 07:43:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 363152 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 oAT7k0Bl010033 for ; Mon, 29 Nov 2010 07:46:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755179Ab0K2Hqo (ORCPT ); Mon, 29 Nov 2010 02:46:44 -0500 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:35506 "EHLO ch-smtp01.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755177Ab0K2Hqn (ORCPT ); Mon, 29 Nov 2010 02:46:43 -0500 Received: from c83-248-196-64.bredband.comhem.se ([83.248.196.64]:50458 helo=polaris) by ch-smtp01.sth.basefarm.net with smtp (Exim 4.71) (envelope-from ) id 1PMyOw-0008VB-5V; Mon, 29 Nov 2010 08:43:57 +0100 Received: by polaris (sSMTP sendmail emulation); Mon, 29 Nov 2010 08:43:54 +0100 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 3/7] hid: egalax: Correct for device resolution report error (rev2) Date: Mon, 29 Nov 2010 08:43:28 +0100 Message-Id: <1291016612-25102-4-git-send-email-rydberg@euromail.se> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1291016612-25102-1-git-send-email-rydberg@euromail.se> References: <1291016612-25102-1-git-send-email-rydberg@euromail.se> X-Originating-IP: 83.248.196.64 X-Scan-Result: No virus found in message 1PMyOw-0008VB-5V. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1PMyOw-0008VB-5V 64dc76e780e64dac500e647df09dcea9 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]); Mon, 29 Nov 2010 07:46:44 +0000 (UTC) diff --git a/drivers/hid/hid-egalax.c b/drivers/hid/hid-egalax.c index 6fbb4e0..b3a1139 100644 --- a/drivers/hid/hid-egalax.c +++ b/drivers/hid/hid-egalax.c @@ -54,6 +54,7 @@ static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi, case HID_UP_GENDESK: switch (usage->hid) { case HID_GD_X: + field->logical_maximum = 32760; hid_map_usage(hi, usage, bit, max, EV_ABS, ABS_MT_POSITION_X); set_abs(input, ABS_MT_POSITION_X, field, 0); @@ -61,6 +62,7 @@ static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi, set_abs(input, ABS_X, field, 0); return 1; case HID_GD_Y: + field->logical_maximum = 32760; hid_map_usage(hi, usage, bit, max, EV_ABS, ABS_MT_POSITION_Y); set_abs(input, ABS_MT_POSITION_Y, field, 0);