summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2022-03-18 12:16:38 +0900
committerYoungjae Cho <y0.cho@samsung.com>2022-03-18 12:16:38 +0900
commitaf75b9dfcd86c69ad3045826794d71d927132c69 (patch)
tree9db7db1affe5fdaae06a0512fa3070723a1f98fa
parenteeb77fd47e572e89cd49f93761ab70ca6ded1f59 (diff)
downloaddevice-af75b9dfcd86c69ad3045826794d71d927132c69.tar.gz
device-af75b9dfcd86c69ad3045826794d71d927132c69.tar.bz2
device-af75b9dfcd86c69ad3045826794d71d927132c69.zip
usb-gadget: add remain_after_disable option to usb_function
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>
-rw-r--r--include/backend/hal-usb_gadget-interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/backend/hal-usb_gadget-interface.h b/include/backend/hal-usb_gadget-interface.h
index 27e9830..6db0156 100644
--- 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);
};