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

usb: gadget: configfs: use to_config_usb_cfg() in os_desc_link()



[ Upstream commit 5d143ec4 ]

replace open-coded container_of() with to_config_usb_cfg() 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-4-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 f12829e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment