projects
/
platform
/
hal
/
api
/
device.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeb77fd
)
usb-gadget: add remain_after_disable option to usb_function
04/272504/1
author
Youngjae Cho
<y0.cho@samsung.com>
Fri, 18 Mar 2022 03:16:38 +0000
(12:16 +0900)
committer
Youngjae Cho
<y0.cho@samsung.com>
Fri, 18 Mar 2022 03:16:38 +0000
(12:16 +0900)
This is set to 1 only when a service shouldn't be stopped
when disabling usb function.
Change-Id: Ie7c7e8f0b95a2c931df3702dbe76f9fd0c7d0a83
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/backend/hal-usb_gadget-interface.h
patch
|
blob
|
history
diff --git
a/include/backend/hal-usb_gadget-interface.h
b/include/backend/hal-usb_gadget-interface.h
index
27e9830
..
6db0156
100644
(file)
--- a/
include/backend/hal-usb_gadget-interface.h
+++ b/
include/backend/hal-usb_gadget-interface.h
@@
-69,6
+69,9
@@
struct usb_function {
int is_functionfs;
const char *service;
+ /* do not stop the service on disabling usb-gadget function */
+ int remain_after_disable;
+
void (*handler)(int enable);
};