Message ID | 20180418193951.17922-6-martin.blumenstingl@googlemail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-usb-owner@kernel.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 3438660244 for <patchwork-linux-usb@patchwork.kernel.org>; Wed, 18 Apr 2018 19:40:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 257A428834 for <patchwork-linux-usb@patchwork.kernel.org>; Wed, 18 Apr 2018 19:40:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17F2A28831; Wed, 18 Apr 2018 19:40:24 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 946F028831 for <patchwork-linux-usb@patchwork.kernel.org>; Wed, 18 Apr 2018 19:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752696AbeDRTkV (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Wed, 18 Apr 2018 15:40:21 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38698 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752613AbeDRTkS (ORCPT <rfc822; linux-usb@vger.kernel.org>); Wed, 18 Apr 2018 15:40:18 -0400 Received: by mail-wr0-f194.google.com with SMTP id h3-v6so7858194wrh.5 for <linux-usb@vger.kernel.org>; Wed, 18 Apr 2018 12:40:17 -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=NlM6gEFSGuvgV3+wqzrr+Bpn2LwnufqFslpOua2L+Kvtau/0BLqPb41swKhXILSsJx 8/SbSOnieNmwAebV37Ydd/mtEqdBcU33tKkTP4W//Qmfys6UpZvX1p2YNg3MvHo5aQmq gbcDGXKH6q/NNs7cqHlQSo3i69sTnLAKZupTS62cWea1LfiPC7AQ5E61e5GcnaO7zgKY z2ZIffvzSKtEGyz+T8O1wrxhn7OUbq83HriuZEuskcebeFBwRfSupbbjehAArFBAXwqU vwQX7Jw5RtG80cMrwGj52XcWZCQI/QNQogtAWdeFv8M8GH9SaptxFxCdBPm8rVECk5lv 9z8Q== X-Gm-Message-State: ALQs6tCFKKDo4ov7UhnN0BIz4BWb9p8Z1uuat/oM4j5qcNJmjepQ/Zgv HtBlx+GX66WLTw8hShGAorKysFwk 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 Cc: matthias.bgg@gmail.com, stern@rowland.harvard.edu, rogerq@ti.com, linux-mediatek@lists.infradead.org, linux-amlogic@lists.infradead.org, j-keerthy@ti.com, d-gerlach@ti.com, kishon@ti.com, chunfeng.yun@mediatek.com, linux-rpi-kernel@lists.infradead.org, eric@anholt.net, yamada.masahiro@socionext.com, Martin Blumenstingl <martin.blumenstingl@googlemail.com> 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> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: <linux-usb.vger.kernel.org> X-Mailing-List: linux-usb@vger.kernel.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(+)