From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261527AbVGLOPc (ORCPT ); Tue, 12 Jul 2005 10:15:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261490AbVGLONh (ORCPT ); Tue, 12 Jul 2005 10:13:37 -0400 Received: from rproxy.gmail.com ([64.233.170.205]:2830 "EHLO rproxy.gmail.com") by vger.kernel.org with ESMTP id S261544AbVGLONV convert rfc822-to-8bit (ORCPT ); Tue, 12 Jul 2005 10:13:21 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=og6jjDCIwSUxO9yGrz2irHThQTj2sZ63s0i5W8PbW04M6zz2OAjs6Rbh8x5fdpCeYsJR4gPKI38zy0OE/HGwfkFi4Ehe0RShGjRGr6tl/zJj1LoDLoWfWE1FKYRGYT4oSwS/B3SR34Q8Y1QpbQcpD+ZabpkAKtSrqUSLJyPMY7Y= Message-ID: Date: Tue, 12 Jul 2005 09:13:16 -0500 From: Dmitry Torokhov Reply-To: dtor_core@ameritech.net To: Stelian Pop Subject: Re: [PATCH] Apple USB Touchpad driver (new) Cc: Vojtech Pavlik , Peter Osterlund , Andrew Morton , Johannes Berg , Linux Kernel Mailing List , Frank Arnold In-Reply-To: <1121159126.4656.14.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <20050708101731.GM18608@sd291.sivit.org> <20050709191357.GA2244@ucw.cz> <20050710120425.GC3018@ucw.cz> <1121078371.12621.36.camel@localhost.localdomain> <20050711110024.GA23333@ucw.cz> <1121080115.12627.44.camel@localhost.localdomain> <20050711112121.GA24345@ucw.cz> <1121159126.4656.14.camel@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 7/12/05, Stelian Pop wrote: > > + dev->input.id.bustype = BUS_USB; > + dev->input.id.vendor = id->idVendor; > + dev->input.id.product = id->idProduct; > + dev->input.id.version = ATP_DRIVER_VERSION; > + Why don't we do what most of the other input devices and get version from the device too? Actually we have this in input tree: static inline void usb_to_input_id(const struct usb_device *dev, struct input_id *id) { id->bustype = BUS_USB; id->vendor = le16_to_cpu(dev->descriptor.idVendor); id->product = le16_to_cpu(dev->descriptor.idProduct); id->version = le16_to_cpu(dev->descriptor.bcdDevice); } -- Dmitry