Message ID | 20180418193951.17922-6-martin.blumenstingl@googlemail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> 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 103EB601D7 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 18 Apr 2018 19:40:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F367928831 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 18 Apr 2018 19:40:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E81AF28837; Wed, 18 Apr 2018 19:40:37 +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 6E14628831 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 18 Apr 2018 19:40:37 +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=uhfq2Qc6DED0z2aWd48AofmBs/K+8x5VVoDtKBbnBes=; b=hjMVz2D+F3ykXV4ny+3Cxr9W+/ kziEe6VmDIWyL8KT8vr6iQ12oYE4hNl6h0x6iKCo3BgV7SfNYUEcfkmvCGpe3ZPoeOgIAiLiheZrV Je6/YoZ3KLdfX/TM6TyFe2AFHh9JdD+iPSA9Bg5h/LQhL5gV/uSZa/mjpUa5XWPJEQWpk6DfW+40U bcHn29AADTu3/ENYIiz8svq/cGord9ALWd4c+e60Kkyn77LH3hTvfyBqGZQOYR2yXlwChgZWErrbg u24OJKv+vQ2JRAq3tnp8Ykzi5Yz6rOIK5crHJWqqk3uP9Im2A+3DaDr7ttmlvkqpwM5wl5HHtaoZp 3/CTvGPg==; 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 1f8swS-0002jE-23; Wed, 18 Apr 2018 19:40:32 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8swI-0002f8-57; Wed, 18 Apr 2018 19:40:24 +0000 Received: by mail-wr0-x244.google.com with SMTP id v60-v6so7840142wrc.7; Wed, 18 Apr 2018 12:40:18 -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=MwUFQnpuPp8+7PFIwnvwVBXsyhoozKJaQcK+JMZfru4=; b=X8M4re6WHBEggojnZSIYsVL1uC41T0BWIIupQODL+PZZEDcz5l8EbcZYz4QkHUolve 1dGksOo8NBJvhFk5YjVAIDimpgvcUQ9Vz6Nt4pSox2g6cELP+qp3Nl4ZYitgq3/zRTC7 GhF9PYf879RYicHuGJyyoCGwL7tgiHb6ZWCzqXnN9PE0HVjSsW0BGD+P7RBiB3cW+J7v 5gdihgnH7r7clk2JC/f52D7s3aeG4upg6dSo+hZZEOrECT3v63PTc9B7aLqhIS//RfP/ M7WFOd8tonuM8ktweuJfkfm7+NXpGUsDZD2Eg7T0AI3UoyRcaNAwFtoVNs2++HXN+0XN qAkA== 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=MwUFQnpuPp8+7PFIwnvwVBXsyhoozKJaQcK+JMZfru4=; b=bdAlZzMXNIWler0sjWj53CS/u/BgvnjQ+AUvBSgTj8tL2FaiwOiGyFIrZ8BbrE1qKq LWauCV1+iVEJxUsWMkfeK4N2kfmQURAEvSoMOnYA3Zp4LdAyvqL1DImfF9aQHaBaiem9 AIXJEuIjhfH264p+tFuIwE+OuI3CG1tVL5tx+z5sWmSKkBne2/ytbt7MpBfwNVwLW9YD DvlfnvzkCzG1Xc7v8EeHEVZwkG7SW3P3DcNzGjGvvUKD4mRE0QcFhWRW4P0QgjUK5d27 Og7aJ/mRDpSE+AyE2rhGMU1VgEa7DhYRcgZt6EtyLmAmQtaGg/hXMjZb2L4A5QXlLLpl ApNw== X-Gm-Message-State: ALQs6tBjlkL8gNWVIP4efdm6mwQeofwlm8q6iwgkcwhQ6qoApGzSH/xV GvlsNQ43IahyQXDmNB8ePIE= X-Google-Smtp-Source: AIpwx48chdNRFuJOtunQBQkZ+U8H2RPxfGk9KBhzRbWySLfjvH2/nNjneqFhIdwjtpgmlYuarDY28Q== X-Received: by 2002:adf:c328:: with SMTP id n37-v6mr2598877wrf.91.1524080416954; Wed, 18 Apr 2018 12:40:16 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD743A504F9143C002217B8ED.dip0.t-ipconnect.de. [2003:dc:d743:a504:f914:3c00:2217:b8ed]) by smtp.googlemail.com with ESMTPSA id 60-v6sm1871990wrj.62.2018.04.18.12.40.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 12:40:16 -0700 (PDT) From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> To: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH usb v6 5/6] usb: core: phy: add missing forward declaration for "struct device" Date: Wed, 18 Apr 2018 21:39:50 +0200 Message-Id: <20180418193951.17922-6-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180418193951.17922-1-martin.blumenstingl@googlemail.com> References: <20180418193951.17922-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180418_124022_238635_72D313F9 X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=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 <martin.blumenstingl@googlemail.com>, rogerq@ti.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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);
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> --- drivers/usb/core/phy.h | 1 + 1 file changed, 1 insertion(+)