From patchwork Sun Sep 19 08:56:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 193332 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 o8J8vHHZ025064 for ; Sun, 19 Sep 2010 08:57:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751863Ab0ISI46 (ORCPT ); Sun, 19 Sep 2010 04:56:58 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:44232 "EHLO ch-smtp02.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751654Ab0ISI45 (ORCPT ); Sun, 19 Sep 2010 04:56:57 -0400 Received: from c83-248-196-134.bredband.comhem.se ([83.248.196.134]:57068 helo=alnilam) by ch-smtp02.sth.basefarm.net with smtp (Exim 4.68) (envelope-from ) id 1OxFhB-0001oI-6U; Sun, 19 Sep 2010 10:56:27 +0200 Received: by alnilam (sSMTP sendmail emulation); Sun, 19 Sep 2010 10:56:07 +0200 From: "Henrik Rydberg" To: Jiri Kosina Cc: Dmitry Torokhov , Stephane Chatty , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Henrik Rydberg Subject: [PATCH 1/2] hid: 3m: Output proper orientation range Date: Sun, 19 Sep 2010 10:56:03 +0200 Message-Id: <1284886564-30928-1-git-send-email-rydberg@euromail.se> X-Mailer: git-send-email 1.7.1 X-Originating-IP: 83.248.196.134 X-Scan-Result: No virus found in message 1OxFhB-0001oI-6U. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1OxFhB-0001oI-6U 04bf2752b60efe7ad6f98b838a680e4e 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]); Sun, 19 Sep 2010 08:57:17 +0000 (UTC) diff --git a/drivers/hid/hid-3m-pct.c b/drivers/hid/hid-3m-pct.c index cd4b125..860d47c 100644 --- a/drivers/hid/hid-3m-pct.c +++ b/drivers/hid/hid-3m-pct.c @@ -110,7 +110,7 @@ static int mmm_input_mapping(struct hid_device *hdev, struct hid_input *hi, input_set_abs_params(hi->input, ABS_MT_TOUCH_MINOR, f1, f2, df / SN_WIDTH, 0); input_set_abs_params(hi->input, ABS_MT_ORIENTATION, - 1, 1, 0, 0); + 0, 1, 0, 0); return 1; case HID_DG_CONTACTID: field->logical_maximum = MAX_TRKID;