summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2018-04-18 21:39:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-23 09:41:32 +0200
commit350f76dc063934215a877ef582206763c8a80395 (patch)
treeccfc4abf42088a4f8ee588bfc455e7fde70b410e /drivers
parent7fc65d4c2ba9e5006c629669146c6876b65aa233 (diff)
downloadlinux-stable-350f76dc063934215a877ef582206763c8a80395.tar.gz
linux-stable-350f76dc063934215a877ef582206763c8a80395.tar.bz2
linux-stable-350f76dc063934215a877ef582206763c8a80395.zip
usb: core: phy: add the SPDX-License-Identifier and include guard
This clarifies the license of the code. While here also add an include guard to the header file. 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')
-rw-r--r--drivers/usb/core/phy.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/usb/core/phy.h b/drivers/usb/core/phy.h
index bbc969383074..88a3c037e9df 100644
--- a/drivers/usb/core/phy.h
+++ b/drivers/usb/core/phy.h
@@ -1,3 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * USB roothub wrapper
+ *
+ * Copyright (C) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
+ */
+
+#ifndef __USB_CORE_PHY_H_
+#define __USB_CORE_PHY_H_
+
struct device;
struct usb_phy_roothub;
@@ -13,3 +23,5 @@ int usb_phy_roothub_suspend(struct device *controller_dev,
struct usb_phy_roothub *phy_roothub);
int usb_phy_roothub_resume(struct device *controller_dev,
struct usb_phy_roothub *phy_roothub);
+
+#endif /* __USB_CORE_PHY_H_ */