usb-gadget: add remain_after_disable option to usb_function 04/272504/1
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 18 Mar 2022 03:16:38 +0000 (12:16 +0900)
committerYoungjae 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

index 27e9830..6db0156 100644 (file)
@@ -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);
 };