diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2020-03-17 10:06:10 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2020-03-17 01:23:50 +0000 |
commit | 1be773ac0f366758d4c6cb8697d6d9d13c8ba2ff (patch) | |
tree | bec7e93a76f6dcfbad65e699185bd68c1bde875e | |
parent | f676f44a002d164fa456aea6b65e41fc1b0d114c (diff) | |
download | device-manager-plugin-emul-accepted/tizen_5.5_unified_wearable_hotfix.tar.gz device-manager-plugin-emul-accepted/tizen_5.5_unified_wearable_hotfix.tar.bz2 device-manager-plugin-emul-accepted/tizen_5.5_unified_wearable_hotfix.zip |
Remove unused usb_client hal featuresubmit/tizen_5.5_wearable_hotfix/20201026.184301submit/tizen_5.5/20200317.013450accepted/tizen/5.5/unified/wearable/hotfix/20201027.122726accepted/tizen/5.5/unified/20200317.160157tizen_5.5_wearable_hotfixaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified
Change-Id: I45c4e47f73383e6aa3b8fa09455d880d172260a7
(cherry picked from commit ed676213573380022833b918ba7b17ef300df96d)
-rw-r--r-- | hw/usb_client/usb_client.c | 43 |
1 files changed, 6 insertions, 37 deletions
diff --git a/hw/usb_client/usb_client.c b/hw/usb_client/usb_client.c index 9a90967..4993f28 100644 --- a/hw/usb_client/usb_client.c +++ b/hw/usb_client/usb_client.c @@ -18,32 +18,7 @@ #include <hw/usb_client.h> -#include <limits.h> -#include <stdio.h> -#include <string.h> - -#define zalloc(amount) calloc(1, amount) - -static int legacy_get_current_gadget(struct usb_client *usb, - struct usb_gadget **_gadget) -{ - return -ENOTSUP; -} - -static bool legacy_is_function_supported(struct usb_client *usb, - struct usb_function *func) -{ - return false; -} - -static bool legacy_is_gadget_supported(struct usb_client *usb, - struct usb_gadget *gadget) -{ - return false; -} - -static int legacy_reconfigure_gadget(struct usb_client *usb, - struct usb_gadget *gadget) +static int legacy_reconfigure_gadget(struct usb_client *usb, struct usb_gadget *gadget) { return 0; } @@ -58,10 +33,6 @@ static int legacy_disable(struct usb_client *usb) return 0; } -static void legacy_free_gadget(struct usb_gadget *gadget) -{ -} - static int legacy_gadget_open(struct hw_info *info, const char *id, struct hw_common **common) { @@ -70,20 +41,18 @@ static int legacy_gadget_open(struct hw_info *info, if (!info || !common) return -EINVAL; - legacy = zalloc(sizeof(*legacy)); + legacy = calloc(1, sizeof(*legacy)); if (!legacy) return -ENOMEM; legacy->common.info = info; - legacy->get_current_gadget = legacy_get_current_gadget; + legacy->reconfigure_gadget = legacy_reconfigure_gadget; - legacy->is_gadget_supported = legacy_is_gadget_supported; - legacy->is_function_supported = legacy_is_function_supported; legacy->enable = legacy_enable; legacy->disable = legacy_disable; - legacy->free_gadget = legacy_free_gadget; *common = &legacy->common; + return 0; } @@ -94,10 +63,10 @@ static int legacy_gadget_close(struct hw_common *common) if (!common) return -EINVAL; - legacy = container_of(common, struct usb_client, - common); + legacy = container_of(common, struct usb_client, common); free(legacy); + return 0; } |