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)
commitc6919d5e0cd168a732034d8dc19fdc3dff683a2b
tree5136c2316bb3fcfd0bdbf677d99e6818b47ce016
parent16c8373ecf7b3c723a8e765d798ea413bc8345a6
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