This patch adds a new macro "XHCI_PLAT_RENESAS_RCAR_PRIV" to make struct xhci_plat_priv data for R-Car SoCs easily. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx> --- drivers/usb/host/xhci-rcar.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/xhci-rcar.h b/drivers/usb/host/xhci-rcar.h index d2ffe20..78379e3 100644 --- a/drivers/usb/host/xhci-rcar.h +++ b/drivers/usb/host/xhci-rcar.h @@ -28,4 +28,12 @@ static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd) return 0; } #endif + +#define XHCI_PLAT_RENESAS_RCAR_PRIV(soc, firmware) \ +static const struct xhci_plat_priv xhci_plat_renesas_rcar_##soc = { \ + .firmware_name = firmware, \ + .init_quirk = xhci_rcar_init_quirk, \ + .plat_start = xhci_rcar_start, \ +} + #endif /* _XHCI_RCAR_H */ -- 1.9.1