All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 5/6] usb: Iterator for ports
Date: Thu, 1 Apr 2021 09:37:33 +0300	[thread overview]
Message-ID: <YGVqLVMaUeqgvT4x@kuha.fi.intel.com> (raw)
In-Reply-To: <7cf8093e-20ab-ab88-5ba1-c2e6128c0480@roeck-us.net>

On Wed, Mar 31, 2021 at 09:41:22AM -0700, Guenter Roeck wrote:
> > diff --git a/include/linux/usb.h b/include/linux/usb.h
> > index ddd2f5b2a2827..ebcd03d835d04 100644
> > --- a/include/linux/usb.h
> > +++ b/include/linux/usb.h
> > @@ -882,6 +882,15 @@ extern struct usb_host_interface *usb_find_alt_setting(
> >  		unsigned int iface_num,
> >  		unsigned int alt_num);
> >  
> > +#ifdef CONFIG_USB
> 
> #if IS_ENABLED(CONFIG_USB)

Thanks Guenter.

> > +int usb_for_each_port(void *data, int (*fn)(struct device *, void *));
> > +#else
> > +static inline int usb_for_each_port(void *data, int (*fn)(struct device *, void *))
> > +{
> > +	return 0;
> > +}
> > +#endif
> > +
> >  /* port claiming functions */
> >  int usb_hub_claim_port(struct usb_device *hdev, unsigned port1,
> >  		struct usb_dev_state *owner);
> > 

-- 
heikki

  reply	other threads:[~2021-04-01  6:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31 10:59 [PATCH v3 0/6] usb: Linking ports to their Type-C connectors Heikki Krogerus
2021-03-31 10:59 ` [PATCH v3 1/6] usb: typec: Organize the private headers properly Heikki Krogerus
2021-03-31 10:59 ` [PATCH v3 2/6] usb: typec: Declare the typec_class static Heikki Krogerus
2021-03-31 10:59 ` [PATCH v3 3/6] usb: typec: Port mapping utility Heikki Krogerus
2021-03-31 10:59 ` [PATCH v3 4/6] usb: Link the ports to the connectors they are attached to Heikki Krogerus
2021-03-31 10:59 ` [PATCH v3 5/6] usb: Iterator for ports Heikki Krogerus
2021-03-31 14:27   ` kernel test robot
2021-03-31 14:27     ` kernel test robot
2021-03-31 16:41   ` Guenter Roeck
2021-04-01  6:37     ` Heikki Krogerus [this message]
2021-04-05 19:25       ` Guenter Roeck
2021-03-31 10:59 ` [PATCH v3 6/6] usb: typec: Link all ports during connector registration Heikki Krogerus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YGVqLVMaUeqgvT4x@kuha.fi.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.