Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: host: xhci: plat: finally get rid of xhci_plat_type_is()

Now that there are no more users for
xhci_plat_type_is(), we can safely remove it.

Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Felipe Balbi and committed by
Greg Kroah-Hartman
c06fac7f b1c127ae

-21
-3
drivers/usb/host/xhci-plat.c
··· 86 86 87 87 #ifdef CONFIG_OF 88 88 static const struct xhci_plat_priv xhci_plat_marvell_armada = { 89 - .type = XHCI_PLAT_TYPE_MARVELL_ARMADA, 90 89 .init_quirk = xhci_mvebu_mbus_init_quirk, 91 90 }; 92 91 93 92 static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen2 = { 94 - .type = XHCI_PLAT_TYPE_RENESAS_RCAR_GEN2, 95 93 .firmware_name = XHCI_RCAR_FIRMWARE_NAME_V1, 96 94 .init_quirk = xhci_rcar_init_quirk, 97 95 .plat_start = xhci_rcar_start, 98 96 }; 99 97 100 98 static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen3 = { 101 - .type = XHCI_PLAT_TYPE_RENESAS_RCAR_GEN3, 102 99 .firmware_name = XHCI_RCAR_FIRMWARE_NAME_V2, 103 100 .init_quirk = xhci_rcar_init_quirk, 104 101 .plat_start = xhci_rcar_start,
-18
drivers/usb/host/xhci-plat.h
··· 13 13 14 14 #include "xhci.h" /* for hcd_to_xhci() */ 15 15 16 - enum xhci_plat_type { 17 - XHCI_PLAT_TYPE_MARVELL_ARMADA = 1, 18 - XHCI_PLAT_TYPE_RENESAS_RCAR_GEN2, 19 - XHCI_PLAT_TYPE_RENESAS_RCAR_GEN3, 20 - }; 21 - 22 16 struct xhci_plat_priv { 23 - enum xhci_plat_type type; 24 17 const char *firmware_name; 25 18 void (*plat_start)(struct usb_hcd *); 26 19 int (*init_quirk)(struct usb_hcd *); 27 20 }; 28 21 29 22 #define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv) 30 - 31 - static inline bool xhci_plat_type_is(struct usb_hcd *hcd, 32 - enum xhci_plat_type type) 33 - { 34 - struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); 35 - 36 - if (priv && priv->type == type) 37 - return true; 38 - else 39 - return false; 40 - } 41 23 #endif /* _XHCI_PLAT_H */