mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
usb: roles: fix include/linux/usb/role.h compile issue
commit945c37ed56
upstream. when CONFIG_USB_ROLE_SWITCH is not defined, add usb_role_switch_find_by_fwnode() definition which return NULL. Fixes:c6919d5e0c
("usb: roles: Add usb_role_switch_find_by_fwnode()") Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com> Link: https://lore.kernel.org/r/1641818608-25039-1-git-send-email-quic_linyyuan@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6aeff8a7c7
commit
20f6675821
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,12 @@ fwnode_usb_role_switch_get(struct fwnode_handle *node)
|
|||
|
||||
static inline void usb_role_switch_put(struct usb_role_switch *sw) { }
|
||||
|
||||
static inline struct usb_role_switch *
|
||||
usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline struct usb_role_switch *
|
||||
usb_role_switch_register(struct device *parent,
|
||||
const struct usb_role_switch_desc *desc)
|
||||
|
|
Loading…
Reference in a new issue