From patchwork Sat Feb 2 20:45:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Sbarra X-Patchwork-Id: 2084671 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 0DED1DFB79 for ; Sat, 2 Feb 2013 20:46:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751486Ab3BBUq3 (ORCPT ); Sat, 2 Feb 2013 15:46:29 -0500 Received: from mail-ia0-f177.google.com ([209.85.210.177]:51703 "EHLO mail-ia0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751248Ab3BBUp6 (ORCPT ); Sat, 2 Feb 2013 15:45:58 -0500 Received: by mail-ia0-f177.google.com with SMTP id h8so6753460iaa.22 for ; Sat, 02 Feb 2013 12:45:57 -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=qwT0GL7bHVv26rd5dViF3wU6Jc7YlsgxZtdQJWyGi6c=; b=G466ckX42RfdQdyWGDmEu7Fn90I8iuu6mfqc2wjHBwp2AsuR1q9JRqoaDKnwN5ILTk f31CAdKxoQJofZo5TQbP46gUVj+B4cAM7lVKfpLZ/4ZUI8XS+bA3F7JSuSMp8sNCMHyS ht0cmtqdUgQtpYcI8s4qzJ7VGxyH2df+Tm41S+SIcSRYvmVLlKj3ibG4dfhmkZOlofSr Gj91K8u6g6ikuKtOTEau/UXPFzgPkacC8fuY88DsJ6RlrPrWzTRGD+dKIXdeaiIv2AVw CoCVOZYsVTyhJCMQvyGgEeCnaG9eSpIX37LNj9t/Ul8vvd5gIe4SDw3kN1m+2g69tOjR F5nQ== X-Received: by 10.50.76.168 with SMTP id l8mr1814032igw.97.1359837957896; Sat, 02 Feb 2013 12:45:57 -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 k5sm8272643igq.9.2013.02.02.12.45.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 02 Feb 2013 12:45:57 -0800 (PST) From: Paul Sbarra To: jkosina@suse.cz Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Sbarra Subject: [PATCH 2/3] hid: Split accel, brake for Logitech Driving Force wheel Date: Sat, 2 Feb 2013 14:45:24 -0600 Message-Id: <1359837925-6383-2-git-send-email-sbarra.paul@gmail.com> X-Mailer: git-send-email 1.8.1.1 In-Reply-To: <1359837925-6383-1-git-send-email-sbarra.paul@gmail.com> References: <1359837925-6383-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 Conflicts: drivers/hid/hid-lg.c Signed-off-by: Paul Sbarra --- 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 9312a62..4bc0e1b 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -79,7 +79,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), */ @@ -99,11 +98,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), */