]> git.baikalelectronics.ru Git - kernel.git/commit
usb: roles: Add usb_role_switch_find_by_fwnode()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 8 Oct 2019 12:25:59 +0000 (15:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 14:05:25 +0000 (15:05 +0100)
commit835f1225e8fa5f7842cbfce378ff8eaa7875c326
tree5136c2316bb3fcfd0bdbf677d99e6818b47ce016
parent4eff172edfb6d15b6b32b0b1fe3f8a081d9ea4a5
usb: roles: Add usb_role_switch_find_by_fwnode()

Simple wrapper function that searches USB role switches with
class_find_device_by_fwnode().

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20191008122600.22340-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/roles/class.c
include/linux/usb/role.h