Skip to content

Commit 79a17dd

Browse files
shimodaygregkh
authored andcommitted
usb: host: xhci: add a platform-private field
This patch adds an xhci->priv field for private use by XHCI platform drivers. Until now none of the platform drivers has used this private space. Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 32479d4 commit 79a17dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/usb/host/xhci.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,9 @@ struct xhci_hcd {
16561656
u32 port_status_u0;
16571657
/* Compliance Mode Timer Triggered every 2 seconds */
16581658
#define COMP_MODE_RCVRY_MSECS 2000
1659+
1660+
/* platform-specific data -- must come last */
1661+
unsigned long priv[0] __aligned(sizeof(s64));
16591662
};
16601663

16611664
/* Platform specific overrides to generic XHCI hc_driver ops */

0 commit comments

Comments
 (0)