]> git.baikalelectronics.ru Git - kernel.git/commit
usb: Iterator for ports
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 7 Apr 2021 06:55:54 +0000 (09:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:00:00 +0000 (16:00 +0200)
commitd340c597ce86343466c20d073112344c1f91d4e4
tree6c500a26a62578af2a5d65064680f142d2dc788b
parent54be730640c9c996c3e25a0eafe926f7fd0b07f6
usb: Iterator for ports

Introducing usb_for_each_port(). It works the same way as
usb_for_each_dev(), but instead of going through every USB
device in the system, it walks through the USB ports in the
system.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210407065555.88110-4-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/usb.c
include/linux/usb.h