From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752055AbYJSUGY (ORCPT ); Sun, 19 Oct 2008 16:06:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751796AbYJSUGP (ORCPT ); Sun, 19 Oct 2008 16:06:15 -0400 Received: from rv-out-0506.google.com ([209.85.198.227]:46430 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721AbYJSUGN (ORCPT ); Sun, 19 Oct 2008 16:06:13 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qjw+l9IfyDzSQ5A7BPnSONhnjhD4sHfq3vv7tv+zBccguNkt35mxtpctt3282MDkVG LXlKF08N4C7BhBfQx+AvIbB11yGPu1ug6sJ5tbd14xllkh/lWTZ+XCNhsqeuFOnosx/3 uzUKG/LWe6l2TftAAq0DKT32KKwiXzJgXfjIE= Message-ID: Date: Sun, 19 Oct 2008 13:06:12 -0700 From: "Justin Mattock" To: "Jiri Kosina" Subject: Re: several messages Cc: "Jiri Slaby" , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, "Steven Noonan" , "Sven Anders" , "Marcel Holtmann" , linux-bluetooth@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1224425749-22652-1-git-send-email-jirislaby@gmail.com> <1224425749-22652-2-git-send-email-jirislaby@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 19, 2008 at 12:40 PM, Jiri Kosina wrote: > On Sun, 19 Oct 2008, Jiri Slaby wrote: > >> +enum hid_type { >> + HID_TYPE_UNKNOWN = 0, >> + HID_TYPE_MOUSE, >> + HID_TYPE_KEYBOARD >> +}; >> + > > Do we really need the HID_TYPE_KEYBOARD at all? It's not used anywhere in > the code. I'd propose to add it when it is actually needed. I.e. have the > enum contain something like HID_TYPE_MOUSE HID_TYPE_OTHER for now, and add > whatever will become necessary in the future, what do you think? > > > On Sun, 19 Oct 2008, Jiri Slaby wrote: > >> +/** >> + * hid_mouse_ignore_list - mouse devices which must not be held by the hid layer >> + */ > > I think a more descriptive comment would be appropriate here. It might not > be obvious on the first sight why this needs to be done separately from > the generic hid_blacklist. I.e. something like > > /** > * There are composite devices for which we want to ignore only a certain > * interface. This is a list of devices for which only the mouse interface > * will be ignored. > */ > > maybe? > > Thanks, > > -- > Jiri Kosina > SUSE Labs > I can agree with that, whats the point having something there if it not being used,(just eating up precious space); -- Justin P. Mattock