diff options
author | 2015-09-16 12:10:42 +0200 | |
---|---|---|
committer | 2015-09-27 10:54:31 -0500 | |
commit | b0bac2581c1918cc4ab0aca01977ad69f0bc127a (patch) | |
tree | 924683c079331a43475d1814bebf3f6ade75165c /drivers/usb/gadget/function/f_acm.c | |
parent | usb: gadget: epautoconf: add usb_ep_autoconfig_release() function (diff) | |
download | wireguard-linux-b0bac2581c1918cc4ab0aca01977ad69f0bc127a.tar.xz wireguard-linux-b0bac2581c1918cc4ab0aca01977ad69f0bc127a.zip |
usb: gadget: introduce 'enabled' flag in struct usb_ep
This patch introduces 'enabled' flag in struct usb_ep, and modifies
usb_ep_enable() and usb_ep_disable() functions to encapsulate endpoint
enabled/disabled state. It helps to avoid enabling endpoints which are
already enabled, and disabling endpoints which are already disables.
From now USB functions don't have to remember current endpoint
enable/disable state, as this state is now handled automatically which
makes this API less bug-prone.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_acm.c')
0 files changed, 0 insertions, 0 deletions