From patchwork Sun Apr 8 21:27:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10328625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8E46604D4 for ; Sun, 8 Apr 2018 21:28:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA008287A6 for ; Sun, 8 Apr 2018 21:28:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BED4028807; Sun, 8 Apr 2018 21:28:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40597287A6 for ; Sun, 8 Apr 2018 21:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=HYWIgAraf3HgfdW/8JCSDDFtOAHzuZNOcqH7JE8N1E8=; b=jQg6oOMgx/HywjiZ9YT3jWpJDb DTqSe2tASYEjOwQ3NJT65GcwFtZZtmSjNcaL7LrRBSep7xBehqLZjLSwnL97wO6gY5REwOCiTMp2q 8aImddKdCxfW2T3zf9Jqsj+4ycshH9QKRbdwBwZxGME8tVGb9BIGAGyxodCG8+NBxRcLwvTZSHiq4 pLyVjbvUaaGEeRfyX4uboGH9fKJhQvTam6XUsgyEbWqpH/n4vTtRKurhYZIlPijAzfR7KbfKdGtLj Avtg+wUMxIxrpTx+i6nqpIFxsM5dgXiMwrA0Fod5EZsopWuy45H3ifpV4IhNxhalIl/hJEP/xvh4R MHsVSnYA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5Hrc-0006Ng-4h; Sun, 08 Apr 2018 21:28:40 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5HrE-0005z9-1f; Sun, 08 Apr 2018 21:28:17 +0000 Received: by mail-wm0-x241.google.com with SMTP id g8so14141579wmd.2; Sun, 08 Apr 2018 14:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NRBVDK2DxGw9RYaWvj3sAZnd4eUE+Q0bI3wXfFyyb4A=; b=DraKLfVoJRPUscJUlY7kL+Dwvofjts4Ij1yQ7Cij5rc0rNYo6uq3Lz86t9UlXVd1vW ngAHOJSj7tD629Wgc02BRZh4rw+QVSTsgJMPO+IUYvUoAOHEy0yERS8dO0ozUZF6/8oF 4hVieQaZFrL2tAFE9Fz9RhiZ0eSKCuf7imw1YUsT8WjmJIW1CrCO6wD9R8i54rCwirmP AILlnf7BrkUPA4ALokSc/BnRx8ANJB1Cn80wIL+wyNqQS3OdZ47HS3na6OHC6KbeWAHB /rrIJdoJoOltuGjcNZRA+rnDToRjBUHh21yyveZf9ukmtJtmTLeQyCetnWOKwM+yg3og 08tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NRBVDK2DxGw9RYaWvj3sAZnd4eUE+Q0bI3wXfFyyb4A=; b=ZxIIn8PwJysseEKAYyxQACZ9ICV+Qo9wbq5s4wF01NqmW/VSosgy4cObe9WzSao2Ds HbypgJPkz4ePatRuonQhADfSBjbjjMe7lR3IbMNqOryN58m3K4kftIAcwUaRpBAg0DFB C/2vPZAa+Kw4kFBLDj6pVNIIKRCQe0tglnfzwdgRm6cl8gV++PIjblTwC0Jiaoc1EroD sb0jpvugZB7Dv/ulXxDMEb12GqiFG7Y6uCWUNbXE5H+QqlqgrSiTmNkpuu6RRRuDb/53 vTXlOxU1MmE9JYWIS7t5bsJRVaTdqbw29Sr4DiaSInsNu/rXNeeWUkch0oMhleRw17HS sb3g== X-Gm-Message-State: AElRT7F+svtGvRtumT86+rNHlTOKaNzr8eb/ha3GQ42DEgUxqp5QqNZY KBXgJY0tU/zb4JoVtYvVK8Q= X-Google-Smtp-Source: AIpwx48hVd4KOsRfErg4b/2mkoaEzF7/zA1ZPIwGlLSdigvudFB9w8wcXChJCcN9EOsCBsmND5+kjA== X-Received: by 10.28.52.17 with SMTP id b17mr16666501wma.142.1523222884370; Sun, 08 Apr 2018 14:28:04 -0700 (PDT) Received: from blackbox.darklights.net (p5B056562.dip0.t-ipconnect.de. [91.5.101.98]) by smtp.googlemail.com with ESMTPSA id j21sm18476370wrb.49.2018.04.08.14.28.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Apr 2018 14:28:03 -0700 (PDT) From: Martin Blumenstingl To: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH usb v5 6/6] usb: core: phy: add the SPDX-License-Identifier and include guard Date: Sun, 8 Apr 2018 23:27:43 +0200 Message-Id: <20180408212743.22934-7-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180408212743.22934-1-martin.blumenstingl@googlemail.com> References: <20180408212743.22934-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180408_142816_094325_24313C71 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: d-gerlach@ti.com, eric@anholt.net, j-keerthy@ti.com, stern@rowland.harvard.edu, chunfeng.yun@mediatek.com, yamada.masahiro@socionext.com, linux-mediatek@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, matthias.bgg@gmail.com, linux-amlogic@lists.infradead.org, kishon@ti.com, Martin Blumenstingl , rogerq@ti.com MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Martin Blumenstingl --- drivers/usb/core/phy.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/usb/core/phy.h b/drivers/usb/core/phy.h index bbc969383074..8451a7e88d38 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 + */ + +#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_ */