summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/phy.h
diff options
context:
space:
mode:
authorMartin Blumenstingl2018-04-18 21:39:50 +0200
committerGreg Kroah-Hartman2018-04-22 15:01:30 +0200
commit9d3cd19be3e2675f5b30172f3305f79ddcb91023 (patch)
tree408dbc1f8312689f51d1f79a67fcc8e675b60425 /drivers/usb/core/phy.h
parentusb: core: phy: make it a no-op if CONFIG_GENERIC_PHY is disabled (diff)
downloadkernel-qcow2-linux-9d3cd19be3e2675f5b30172f3305f79ddcb91023.tar.gz
kernel-qcow2-linux-9d3cd19be3e2675f5b30172f3305f79ddcb91023.tar.xz
kernel-qcow2-linux-9d3cd19be3e2675f5b30172f3305f79ddcb91023.zip
usb: core: phy: add missing forward declaration for "struct device"
Currently hcd.c is the only consumer of the usb_phy_roothub logic. This already includes the required header files so struct device is known. However, future consumers might not know about struct device. Add a forward declaration for struct device to fix potential future consumers which don't include any of the struct device API headers. Fixes: 07dbff0ddbd86c ("usb: core: add a wrapper for the USB PHYs on the HCD") Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/phy.h')
-rw-r--r--drivers/usb/core/phy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/phy.h b/drivers/usb/core/phy.h
index 605555901d44..bbc969383074 100644
--- a/drivers/usb/core/phy.h
+++ b/drivers/usb/core/phy.h
@@ -1,3 +1,4 @@
+struct device;
struct usb_phy_roothub;
struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev);