From patchwork Wed Oct 13 20:29:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 251321 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 o9DKU9jc014115 for ; Wed, 13 Oct 2010 20:30:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752969Ab0JMUaI (ORCPT ); Wed, 13 Oct 2010 16:30:08 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:48489 "EHLO ch-smtp02.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752909Ab0JMUaH (ORCPT ); Wed, 13 Oct 2010 16:30:07 -0400 Received: from c83-248-196-134.bredband.comhem.se ([83.248.196.134]:36478 helo=alnilam) by ch-smtp02.sth.basefarm.net with smtp (Exim 4.68) (envelope-from ) id 1P67xX-0001lk-7o; Wed, 13 Oct 2010 22:30:05 +0200 Received: by alnilam (sSMTP sendmail emulation); Wed, 13 Oct 2010 22:29:56 +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 3/6] hid: egalax: Correct for device resolution report error (rev2) Date: Wed, 13 Oct 2010 22:29:43 +0200 Message-Id: <1287001783-4098-1-git-send-email-rydberg@euromail.se> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1286978302-30034-4-git-send-email-rydberg@euromail.se> References: <1286978302-30034-4-git-send-email-rydberg@euromail.se> X-Originating-IP: 83.248.196.134 X-Scan-Result: No virus found in message 1P67xX-0001lk-7o. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1P67xX-0001lk-7o 34cf9cf41e6ac3513948b08006c027fe 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 20:30:16 +0000 (UTC) diff --git a/drivers/hid/hid-egalax.c b/drivers/hid/hid-egalax.c index 23f832b..6c446b0 100644 --- a/drivers/hid/hid-egalax.c +++ b/drivers/hid/hid-egalax.c @@ -56,6 +56,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); @@ -63,6 +64,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);