Commit ac3a1af4 authored by Linyu Yuan's avatar Linyu Yuan Committed by Zheng Zengkai
Browse files

usb: roles: fix include/linux/usb/role.h compile issue

stable inclusion
from stable-v5.10.96
commit 20f667582189eb3bf73274262a397f6c528d254f
bugzilla: https://gitee.com/openeuler/kernel/issues/I55NWB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=20f667582189eb3bf73274262a397f6c528d254f



--------------------------------

commit 945c37ed upstream.

when CONFIG_USB_ROLE_SWITCH is not defined,
add usb_role_switch_find_by_fwnode() definition which return NULL.

Fixes: c6919d5e ("usb: roles: Add usb_role_switch_find_by_fwnode()")
Signed-off-by: default avatarLinyu Yuan <quic_linyyuan@quicinc.com>
Link: https://lore.kernel.org/r/1641818608-25039-1-git-send-email-quic_linyyuan@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 70b188ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment