usb-gadget: rename ane rearrange enum 17/273817/3 accepted/tizen/unified/20220505.134715 submit/tizen/20220502.091413 submit/tizen/20220503.013451
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 14 Apr 2022 05:08:39 +0000 (14:08 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 27 Apr 2022 02:30:20 +0000 (11:30 +0900)
Removed unused usb-gadget functions, DM and CONN_GADGET.

Change-Id: Ibd8c5fdc18901dd52b489e05731ed03bc3e7d8ce
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/usb-gadget.h

index 8617d97..19a191e 100644 (file)
@@ -1,16 +1,38 @@
+/*
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #ifndef __TIZEN_SYSTEM_USB_GADGET_H__
 #define __TIZEN_SYSTEM_USB_GADGET_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 enum {
-       USB_FUNCTION_NONE = 0,
-       USB_FUNCTION_MTP =  0x1,
-       USB_FUNCTION_ACM =  0x2,
-       USB_FUNCTION_SDB =  0x4,
-       USB_FUNCTION_RNDIS = 0x8,
-       USB_FUNCTION_DIAG = 0x10,
-       USB_FUNCTION_CONN_GADGET = 0x20,
-       USB_FUNCTION_DM = 0x40,
-       USB_FUNCTION_RMNET = 0x80
+       USB_GADGET_FUNC_NONE  = 0x00,
+       USB_GADGET_FUNC_SDB   = 0x01,
+       USB_GADGET_FUNC_MTP   = 0x02,
+       USB_GADGET_FUNC_RNDIS = 0x04,
+       USB_GADGET_FUNC_ACM   = 0x08,
+       USB_GADGET_FUNC_DIAG  = 0x10,
+       USB_GADGET_FUNC_RMNET = 0x20,
 };
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif __TIZEN_SYSTEM_USB_GADGET_H__