From: Niklas Neronin <niklas.neronin@linux.intel.com>
To: mathias.nyman@linux.intel.com
Cc: linux-usb@vger.kernel.org,
Niklas Neronin <niklas.neronin@linux.intel.com>
Subject: [PATCH 5/5] usb: xhci: remove unused structs
Date: Tue, 6 Oct 2026 17:24:27 +0200 [thread overview]
Message-ID: <20261006152427.3735383-6-niklas.neronin@linux.intel.com> (raw)
In-Reply-To: <20261006152427.3735383-1-niklas.neronin@linux.intel.com>
Neither structure has any remaining users in the xHCI driver, so
remove them as dead code.
Last time 'xhci_cd' was used [1] in 2014.
Last time 'dev_info' was used [2] in 2013.
Link: https://git.kernel.org/torvalds/c/c311e391a7ef [1]
Link: https://git.kernel.org/torvalds/c/de68bab4fa96 [2]
Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
---
drivers/usb/host/xhci.h | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index c7bfa7f028d3..20abcc5a7acc 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1322,12 +1322,6 @@ struct xhci_td {
*/
#define XHCI_CMD_DEFAULT_TIMEOUT 5000
-/* command descriptor */
-struct xhci_cd {
- struct xhci_command *command;
- union xhci_trb *cmd_trb;
-};
-
enum xhci_ring_type {
TYPE_CTRL = 0,
TYPE_ISOC,
@@ -1424,12 +1418,6 @@ struct s3_save {
u32 config_reg;
};
-/* Use for lpm */
-struct dev_info {
- u32 dev_id;
- struct list_head list;
-};
-
struct xhci_bus_state {
unsigned long bus_suspended;
unsigned long next_statechange;
--
2.50.1
next prev parent reply other threads:[~2026-10-06 15:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 15:24 [PATCH 0/5] usb: xhci: bandwidth accounting fixes and cleanup Niklas Neronin
2026-10-06 15:24 ` [PATCH 1/5] usb: xhci: clear stale bandwidth data after hibernation Niklas Neronin
2026-10-06 16:12 ` Michal Pecio
2026-10-06 16:22 ` sashiko-bot
2026-10-06 15:24 ` [PATCH 2/5] usb: xhci: correct num_active_eps accounting on allocation failure Niklas Neronin
2026-10-06 16:29 ` sashiko-bot
2026-10-06 16:33 ` Michal Pecio
2026-10-06 21:02 ` Michal Pecio
2026-10-07 9:28 ` Neronin, Niklas
2026-10-06 15:24 ` [PATCH 3/5] usb: xhci: remove redundant TT active EP update from xhci_free_virt_device() Niklas Neronin
2026-10-06 16:41 ` sashiko-bot
2026-10-06 15:24 ` [PATCH 4/5] usb: xhci: correct variable size conversion Niklas Neronin
2026-10-06 16:46 ` sashiko-bot
2026-10-06 15:24 ` Niklas Neronin [this message]
2026-10-06 16:47 ` [PATCH 5/5] usb: xhci: remove unused structs sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261006152427.3735383-6-niklas.neronin@linux.intel.com \
--to=niklas.neronin@linux.intel.com \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.