Commit 3d0127ac authored by Linyu Yuan's avatar Linyu Yuan Committed by Greg Kroah-Hartman
Browse files

usb: gadget: configfs: use to_usb_function_instance() in cfg (un)link func



[ Upstream commit 5284accc ]

replace open-coded container_of() with to_usb_function_instance() helper.

Reviewed-by: default avatarJack Pham <quic_jackp@quicinc.com>
Signed-off-by: default avatarLinyu Yuan <quic_linyyuan@quicinc.com>
Link: https://lore.kernel.org/r/1637211213-16400-5-git-send-email-quic_linyyuan@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 89e7252d ("usb: gadget: configfs: Restrict symlink creation is UDC already binded")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c955f9cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment