Message ID | 20180408212743.22934-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 94EDF604D4 for <patchwork-linux-amlogic@patchwork.kernel.org>; Sun, 8 Apr 2018 21:28:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8431A287A6 for <patchwork-linux-amlogic@patchwork.kernel.org>; Sun, 8 Apr 2018 21:28:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 785DA287E5; Sun, 8 Apr 2018 21:28:16 +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 ED52E287A6 for <patchwork-linux-amlogic@patchwork.kernel.org>; Sun, 8 Apr 2018 21:28:15 +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=HHpwcgHkTOvAz3J3aY/7uudR/J BRfyL2TEqN+yFW7EiV9F3znRpwBc7ibglyHfwz1wAE7J9nAaExQkOJ7NVKpBCNjw47r+Hs8gcVhQP u/ivISKukddSrqjn3Da502JBaNY1YvSP9P7OCKgmA3oTRf42+yR+UTqvdVcdcfaF1Is2FCDYFqwCj S6v4R+pzXj1gAMcC4Csd1WZa/eJXEyS1MA2J+LRbXEXtLBqeJxk8GIIJ4sxrz5MVbDo0tr32SmqU0 2KmHViKHrFS1yHf6ZIGAbT7Ph8XHTbFK2Q0vDYBRoioO7xL00zOx9+7Y96I6GLKWk6N6PloQme4Ro kn0UMq5g==; 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 1f5HrB-00062D-FT; Sun, 08 Apr 2018 21:28:13 +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 <martin.blumenstingl@googlemail.com> 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-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(+)