From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754079AbYL3XjX (ORCPT ); Tue, 30 Dec 2008 18:39:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752781AbYL3XjJ (ORCPT ); Tue, 30 Dec 2008 18:39:09 -0500 Received: from mga02.intel.com ([134.134.136.20]:48591 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753830AbYL3XjH (ORCPT ); Tue, 30 Dec 2008 18:39:07 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.36,304,1228118400"; d="scan'208";a="477960497" Date: Tue, 30 Dec 2008 15:39:00 -0800 From: Sarah Sharp To: Julia Lawall Cc: gregkh@suse.de, dbrownell@users.sourceforge.net, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] include/linux: Move definitions from usb.h to usb/ch9.h Message-ID: <20081230233727.GA12819@gamba.jf.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 29, 2008 at 10:48:19PM +0100, Julia Lawall wrote: > From: Julia Lawall > > The functions: > > usb_endpoint_dir_in(epd) > usb_endpoint_dir_out(epd) > usb_endpoint_is_bulk_in(epd) > usb_endpoint_is_bulk_out(epd) > usb_endpoint_is_int_in(epd) > usb_endpoint_is_int_out(epd) > usb_endpoint_is_isoc_in(epd) > usb_endpoint_is_isoc_out(epd) > usb_endpoint_num(epd) > usb_endpoint_type(epd) > usb_endpoint_xfer_bulk(epd) > usb_endpoint_xfer_control(epd) > usb_endpoint_xfer_int(epd) > usb_endpoint_xfer_isoc(epd) > > are moved from include/linux/usb.h to include/linux/usb/ch9.h. > include/linux/usb/ch9.h makes more sense for these functions because they > only depend on constants that are defined in this file. I thought the include/linux/usb/ch9.h was supposed to include values that are defined in various USB specifications (starting with the protocol "chapter 9" from the USB 1.1 bus specification). The constants (masks) used by these functions aren't part of the standards, so why move these functions to include/linux/usb/ch9.h? Was it confusing to find these functions, or do you have an overall plan for these changes? Sarah Sharp