From f729f67c340ad1a5c293020f6bfef2a1c02dd0b8 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Thu, 14 Apr 2022 14:08:39 +0900 Subject: [PATCH] usb-gadget: rename ane rearrange enum Removed unused usb-gadget functions, DM and CONN_GADGET. Change-Id: Ibd8c5fdc18901dd52b489e05731ed03bc3e7d8ce Signed-off-by: Youngjae Cho --- include/usb-gadget.h | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/include/usb-gadget.h b/include/usb-gadget.h index 8617d97..19a191e 100644 --- a/include/usb-gadget.h +++ b/include/usb-gadget.h @@ -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__ -- 2.7.4