diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2022-03-18 12:16:38 +0900 |
---|---|---|
committer | Youngjae Cho <y0.cho@samsung.com> | 2022-03-18 12:16:38 +0900 |
commit | af75b9dfcd86c69ad3045826794d71d927132c69 (patch) | |
tree | 9db7db1affe5fdaae06a0512fa3070723a1f98fa | |
parent | eeb77fd47e572e89cd49f93761ab70ca6ded1f59 (diff) | |
download | device-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.h | 3 |
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); }; |