From patchwork Sun Apr 8 21:27:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10328609 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 7EFA16053B for ; Sun, 8 Apr 2018 21:28:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D1EF287A6 for ; Sun, 8 Apr 2018 21:28:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F08E287D5; Sun, 8 Apr 2018 21:28:15 +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 90D22287A6 for ; Sun, 8 Apr 2018 21:28:14 +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=Mb4LZZuhL9QiZMEOqSg8MwTxUjyyaGJDK/78dngQV0A=; b=k2ZVjAoxUthlzGn15fCe1u2Qhr dajeiMrabYvFRoiIbw3E++dtywbhr/45MFoV1zv+maDPFb7DAIteYjfV8dTwNhpkEI861ealHJjd9 w2iY4tpsFR0OcYsNwG3Bh46hsswIlmGhzs0ZcyoJFC6Hn1w9afkFd8ZdYFG/Pr7RHFL63BmwHb+D4 70jQiFMke0KyOKDXUQebfGRKz8jGpSxC6raw6cqwKedqP0TB4wVUpTJ+4wrif3rvq+DPnl3XFtkPo 0KWvvix8isUaSwKG7a/ShHTm2xnfKd5Ny89YlLB0ft7e2l5ue+dpHxddbQ25KY7yLC6QviAYUxxFj SaqizIqw==; 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 1f5Hr9-00061M-M1; Sun, 08 Apr 2018 21:28:11 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5Hr6-0005yv-Kj; Sun, 08 Apr 2018 21:28:10 +0000 Received: by mail-wr0-x243.google.com with SMTP id s12so6803456wrc.8; Sun, 08 Apr 2018 14:28:04 -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=SxMe0aYxxu7VdCCtKe0yRHUy9ReUfp606cI4wu1gzsajEJphpq/ns7BXh9V9y14gwB /yW1PPSPQY4iRdIKMmP9Ny2BC7J6zKtwmNXWDqRfvjFQdnO+1ezlcYcjBB31oGRoAuIi qt4c1RaJum3juP0wMguZEZkjzjPycfbTz//Nlq2sAWfOmsNB6lIZ/q9C0t8jY8Cl3hL9 zcoWyVxNpOpD5AHYQBEZtrS+j5GdCsvGGLh2aK/SPicU8Ib6yHLLieiAbyENauFATGZX opaTieyxf5YxPnsM7yoNYYXoi1GiTO7jyTDZ+ccstApRceJO4Ez+GocIvPU+eWc6zEm8 g8ww== 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=TOQeDVKFrWnYtPd4BRsNkYRaRz+TlvQJsVbBSR7RmGoZdGnbj8V0vmrTLjgqdsgfjl 5muABzMuCERh5pe0azF0fdws1TC2LD5CpBMSVgV7mOyNuWNnPNIbReGVpbr7e7/L+sfy Tj7IC2/TVML1PJhE1t7Ow4s96PiYSvTKTxhB9sGLgUSxjwCtC/rO9L6dPPloEzqHnqGu DNlREYwK/s6Ba20VgKMe6j4njAWAEbyutsn38dYSc5o7j2kaEJLME/o/y1BZeae4+byA iIIMmsYosr+qZLrqDsIOAkDvP9iXQYf5sK1Hwq45X29iqYDWfq9zN1zreD8aGt08u/O2 Uhog== X-Gm-Message-State: AElRT7HucUHxjnFVBgVj00cVdK6TfLLRDMUKnifkKt196dWtpEpmlwbR CxGhl3AmK/OGvvh0/+Ry7vk= X-Google-Smtp-Source: AIpwx4+iIRfYO2xpYwI7XCmvwnaSVm1mYhu9v3MIFGimJ2jDqdSo3L8EfoAMuljMqX6qn7l5wa8cjg== X-Received: by 10.223.226.205 with SMTP id d13mr25546740wrj.152.1523222883071; Sun, 08 Apr 2018 14:28:03 -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.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Apr 2018 14:28:02 -0700 (PDT) From: Martin Blumenstingl To: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH usb v5 5/6] usb: core: phy: add missing forward declaration for "struct device" Date: Sun, 8 Apr 2018 23:27:42 +0200 Message-Id: <20180408212743.22934-6-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_142808_715096_01F4327A X-CRM114-Status: GOOD ( 10.78 ) 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 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 Signed-off-by: Martin Blumenstingl --- drivers/usb/core/phy.h | 1 + 1 file changed, 1 insertion(+) 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);