Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756527AbXFLMgt (ORCPT ); Tue, 12 Jun 2007 08:36:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753637AbXFLMgm (ORCPT ); Tue, 12 Jun 2007 08:36:42 -0400 Received: from styx.suse.cz ([82.119.242.94]:48912 "EHLO mail.suse.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751730AbXFLMgl (ORCPT ); Tue, 12 Jun 2007 08:36:41 -0400 Date: Tue, 12 Jun 2007 14:37:54 +0200 (CEST) From: Jiri Kosina To: Renato Golin Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov Subject: Re: joydev.c and saitek cyborg evo force In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 29 On Mon, 4 Jun 2007, Renato Golin wrote: > > sorry, don't fully understand - what do you mean by "got the messages > > but not the fix"? > The range "detected" was 0 to 255 but both X and Y axis are reporting > 4096. > I think that the code in drivers/hid/hid-input.c: > if ((device->quirks & HID_QUIRK_BADPAD) && (usage->code == ABS_X || > usage->code == ABS_Y)) { > a = field->logical_minimum = 0; > b = field->logical_maximum = 255; > } Hi Renato, the thing is that the aim of this quirk is to normalize the values that are being reported by bogus devices, so we don't really want to trust the values they provide here, do we? Thanks, -- Jiri Kosina SUSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/