Browse Source

USB: EHCI: add a name for the platform-private field

This patch (as1642) adds an ehci->priv field for private use by EHCI
platform drivers.  The space was provided some time ago, but it didn't
have a name.

Until now none of the platform drivers has used this private space,
but that's about to change in the next patch of this series.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Alan Stern 12 years ago
parent
commit
9debc1793b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/usb/host/ehci.h

+ 3 - 0
drivers/usb/host/ehci.h

@@ -225,6 +225,9 @@ struct ehci_hcd {			/* one per controller */
 #ifdef DEBUG
 #ifdef DEBUG
 	struct dentry		*debug_dir;
 	struct dentry		*debug_dir;
 #endif
 #endif
+
+	/* platform-specific data -- must come last */
+	unsigned long		priv[0] __aligned(sizeof(s64));
 };
 };
 
 
 /* convert between an HCD pointer and the corresponding EHCI_HCD */
 /* convert between an HCD pointer and the corresponding EHCI_HCD */