Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 84caa0c7 authored by Jack Pham's avatar Jack Pham
Browse files

usb: gadget: f_cdev: Fix func_suspend



The func_is_suspended and func_wakeup_allowed flags are now not
part of the struct usb_function; hence move those fields to the
local struct f_cdev. Guard the get_status() callback within
CONFIG_USB_FUNC_WAKEUP_SUPPORTED as it should return 0 if
function wakeup is not supported. Finally fix up various usage
of the FUNC_SUSPEND flags to use the standard definitions found
in <uapi/linux/usb/ch9.h>.

Change-Id: I5ff3d45a2a7f77d008220a4f287d08b470fa0418
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 7f17e848
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment