Skip to content

Commit 9debc17

Browse files
AlanSterngregkh
authored andcommitted
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>
1 parent 9ce45ef commit 9debc17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/usb/host/ehci.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ struct ehci_hcd { /* one per controller */
225225
#ifdef DEBUG
226226
struct dentry *debug_dir;
227227
#endif
228+
229+
/* platform-specific data -- must come last */
230+
unsigned long priv[0] __aligned(sizeof(s64));
228231
};
229232

230233
/* convert between an HCD pointer and the corresponding EHCI_HCD */

0 commit comments

Comments
 (0)