From patchwork Sun Feb 17 17:53:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Sbarra X-Patchwork-Id: 2153451 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1FB7DDF283 for ; Sun, 17 Feb 2013 17:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751483Ab3BQRx0 (ORCPT ); Sun, 17 Feb 2013 12:53:26 -0500 Received: from mail-gh0-f173.google.com ([209.85.160.173]:61480 "EHLO mail-gh0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751439Ab3BQRxZ (ORCPT ); Sun, 17 Feb 2013 12:53:25 -0500 Received: by mail-gh0-f173.google.com with SMTP id g2so444266ghb.18 for ; Sun, 17 Feb 2013 09:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=jh5Jxh9rh1zYpL3vPJrABE1lWUvbn58CSz6OrXnvSeM=; b=J9/TmD5b8HRMG/05SVokdSFNI0Aghu9eabgwlOW23DHkFJuPE6dLuVHYzMUpx88Atw 0it2VzIOSm4+Yh20R7Uq5BPJ7V+6Ao/HwkvLtaizQK/IGRzMLakTlIBP9Mxuk8GbYqiR p4GtDbgtWGxxnuAx63c+SeD8J/qIX/rXLL3jQWlZOmehk19MVmh7a5ZoTrgLQkW32vr+ ipul3ygv2DOJ6UVyBd91iAU2U4RYdR8iUaE6rViSBg0NnNrWtzCevDpBiyk5zfika0Dm tKzbkR0xgC2ANqvQngiYDp6Yr5P5+xRe1krol/h8/Hp9fwZKN8ukWjxeD1c4SSR2xroT Cr+w== X-Received: by 10.236.120.206 with SMTP id p54mr15362708yhh.77.1361123605114; Sun, 17 Feb 2013 09:53:25 -0800 (PST) Received: from MOdesk.localdomain (97-91-200-235.dhcp.stls.mo.charter.com. [97.91.200.235]) by mx.google.com with ESMTPS id w2sm108616683yhh.7.2013.02.17.09.53.23 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Feb 2013 09:53:24 -0800 (PST) From: Paul Sbarra To: jkosina@suse.cz, simon@mungewell.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Sbarra Subject: [PATCH 2/2] hid: Split accel, brake for Logitech Driving Force wheel Date: Sun, 17 Feb 2013 11:53:14 -0600 Message-Id: <1361123594-2813-2-git-send-email-sbarra.paul@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1361123594-2813-1-git-send-email-sbarra.paul@gmail.com> References: <1361123594-2813-1-git-send-email-sbarra.paul@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Signed-off-by: Paul Sbarra Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index 6daa192..6bb7f05 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -81,7 +81,6 @@ static __u8 df_rdesc_fixed[] = { 0x09, 0x01, /* Usage (?: 1), */ 0x81, 0x02, /* Input (Variable), */ 0x05, 0x01, /* Usage Page (Desktop), */ -0x09, 0x31, /* Usage (Y), */ 0x26, 0xFF, 0x00, /* Logical Maximum (255), */ 0x46, 0xFF, 0x00, /* Physical Maximum (255), */ 0x95, 0x01, /* Report Count (1), */ @@ -101,11 +100,14 @@ static __u8 df_rdesc_fixed[] = { 0x25, 0x01, /* Logical Maximum (1), */ 0x45, 0x01, /* Physical Maximum (1), */ 0x81, 0x02, /* Input (Variable), */ -0x95, 0x02, /* Report Count (2), */ +0x05, 0x01, /* Usage Page (Desktop), */ +0x95, 0x01, /* Report Count (1), */ 0x75, 0x08, /* Report Size (8), */ 0x26, 0xFF, 0x00, /* Logical Maximum (255), */ 0x46, 0xFF, 0x00, /* Physical Maximum (255), */ -0x09, 0x02, /* Usage (?: 2), */ +0x09, 0x31, /* Usage (Y), */ +0x81, 0x02, /* Input (Variable), */ +0x09, 0x35, /* Usage (Rz), */ 0x81, 0x02, /* Input (Variable), */ 0xC0, /* End Collection, */ 0xA1, 0x02, /* Collection (Logical), */