From patchwork Sun Sep 19 08:56:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 193352 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 o8J8wE2Z025228 for ; Sun, 19 Sep 2010 08:58:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751929Ab0ISI6N (ORCPT ); Sun, 19 Sep 2010 04:58:13 -0400 Received: from ch-smtp03.sth.basefarm.net ([80.76.149.214]:48204 "EHLO ch-smtp03.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790Ab0ISI6M (ORCPT ); Sun, 19 Sep 2010 04:58:12 -0400 Received: from c83-248-196-134.bredband.comhem.se ([83.248.196.134]:57069 helo=alnilam) by ch-smtp03.sth.basefarm.net with smtp (Exim 4.68) (envelope-from ) id 1OxFhG-0005UI-Cl; Sun, 19 Sep 2010 10:56:33 +0200 Received: by alnilam (sSMTP sendmail emulation); Sun, 19 Sep 2010 10:56:25 +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] hid: 3m: Output proper orientation range Date: Sun, 19 Sep 2010 10:56:23 +0200 Message-Id: <1284886583-30965-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 1OxFhG-0005UI-Cl. X-Scan-Signature: ch-smtp03.sth.basefarm.net 1OxFhG-0005UI-Cl 814422b156fd69fd5e3caeeeef3403fa 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:58:14 +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;