Skip to content

Commit

Permalink
Merge "usb: gadget: Remove assigning the function descriptors"
Browse files Browse the repository at this point in the history
  • Loading branch information
qctecmdr authored and Gerrit - the friendly Code Review server committed Sep 4, 2020
2 parents b797691 + dfc0e25 commit dea8098
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions drivers/usb/gadget/function/f_ccid.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* f_ccid.c -- CCID function Driver
*
* Copyright (c) 2011, 2013, 2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2011, 2013, 2017, 2020, The Linux Foundation. All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
Expand Down Expand Up @@ -1042,9 +1042,6 @@ static int ccid_bind_config(struct f_ccid *ccid_dev)
pr_debug("%s\n", __func__);

ccid_dev->function.name = FUNCTION_NAME;
ccid_dev->function.fs_descriptors = ccid_fs_descs;
ccid_dev->function.hs_descriptors = ccid_hs_descs;
ccid_dev->function.ss_descriptors = ccid_ss_descs;
ccid_dev->function.bind = ccid_function_bind;
ccid_dev->function.unbind = ccid_function_unbind;
ccid_dev->function.set_alt = ccid_function_set_alt;
Expand Down
2 changes: 0 additions & 2 deletions drivers/usb/gadget/function/f_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,6 @@ static struct diag_context *diag_context_init(const char *name)
dev->ch = _ch;

dev->function.name = _ch->name;
dev->function.fs_descriptors = fs_diag_desc;
dev->function.hs_descriptors = hs_diag_desc;
dev->function.bind = diag_function_bind;
dev->function.unbind = diag_function_unbind;
dev->function.set_alt = diag_function_set_alt;
Expand Down
2 changes: 0 additions & 2 deletions drivers/usb/gadget/function/f_qdss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,6 @@ static struct usb_function *qdss_alloc(struct usb_function_instance *fi)
struct f_qdss *usb_qdss = opts->usb_qdss;

usb_qdss->port.function.name = "usb_qdss";
usb_qdss->port.function.fs_descriptors = qdss_fs_desc;
usb_qdss->port.function.hs_descriptors = qdss_hs_desc;
usb_qdss->port.function.strings = qdss_strings;
usb_qdss->port.function.bind = qdss_bind;
usb_qdss->port.function.unbind = qdss_unbind;
Expand Down

0 comments on commit dea8098

Please sign in to comment.