From patchwork Wed Dec 30 09:01:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Ebke X-Patchwork-Id: 70210 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBU915sD022679 for ; Wed, 30 Dec 2009 09:01:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751100AbZL3JBE (ORCPT ); Wed, 30 Dec 2009 04:01:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752219AbZL3JBE (ORCPT ); Wed, 30 Dec 2009 04:01:04 -0500 Received: from mail.physik.uni-muenchen.de ([192.54.42.129]:37283 "EHLO mail.physik.uni-muenchen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752202AbZL3JBD (ORCPT ); Wed, 30 Dec 2009 04:01:03 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id 37D5327E1E; Wed, 30 Dec 2009 10:01:02 +0100 (CET) X-Virus-Scanned: amavisd-new at physik.uni-muenchen.de Received: from mail.physik.uni-muenchen.de ([127.0.0.1]) by localhost (mail.physik.uni-muenchen.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A8OebXBCpiHy; Wed, 30 Dec 2009 10:01:02 +0100 (CET) Received: from [192.168.1.66] (ppp-93-104-90-26.dynamic.mnet-online.de [93.104.90.26]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.physik.uni-muenchen.de (Postfix) with ESMTP id A392027DB2; Wed, 30 Dec 2009 10:01:01 +0100 (CET) Message-ID: <4B3B16CD.1050700@physik.uni-muenchen.de> Date: Wed, 30 Dec 2009 10:01:01 +0100 From: Johannes Ebke User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: Dmitry Torokhov CC: Jiri Kosina , "linux-input@vger.kernel.org" Subject: Re: Linux Force Feedback for Saitek Cyborg Evo Force References: <4B26B824.8010403@physik.uni-muenchen.de> <4B2ABC62.2030600@physik.uni-muenchen.de> <20091218175046.GB23450@core.coreip.homeip.net> <4B2D6377.1020703@physik.uni-muenchen.de> <20091221074419.GD3234@core.coreip.homeip.net> <20091221082259.GG3234@core.coreip.homeip.net> <4B39FA1D.6070107@physik.uni-muenchen.de> <1AD572D6-2C2F-4664-9B52-36A8D1BE8B29@gmail.com> <20091230032326.GC7049@core.coreip.homeip.net> In-Reply-To: <20091230032326.GC7049@core.coreip.homeip.net> X-Enigmail-Version: 0.95.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Input: iforce - flip initial RUDDER orientation to correct one Remove the inversion from the data acqisition routine Signed-off-by: Johannes Ebke --- diff -ru drivers/input/joystick/iforce_dmitry/iforce-packets.c drivers/input/joystick/iforce/iforce-packets.c --- drivers/input/joystick/iforce_dmitry/iforce-packets.c 2009-12-30 09:42:22.000000000 +0100 +++ drivers/input/joystick/iforce/iforce-packets.c 2009-12-30 09:32:34.000000000 +0100 @@ -193,7 +193,7 @@ if (HI(cmd) == 6) { input_report_abs(dev, ABS_THROTTLE, data[4]); if (LO(cmd) >= 8 && test_bit(ABS_RUDDER ,dev->absbit)) - input_report_abs(dev, ABS_RUDDER, 255 - data[7]); + input_report_abs(dev, ABS_RUDDER, data[7]); } else { input_report_abs(dev, ABS_THROTTLE, 255 - data[4]); if (LO(cmd) >= 8 && test_bit(ABS_RUDDER ,dev->absbit))