Message ID | 20230410232639.1561152-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2215960vqo; Mon, 10 Apr 2023 16:32:05 -0700 (PDT) X-Google-Smtp-Source: AKy350aD3ijkrMvnijFpFW9+Oqis2EPEMonPacR484WXdPLxTQPeR4m74fReqjPtbk2UZ636fjYY X-Received: by 2002:a17:907:76eb:b0:93b:2d0b:b60e with SMTP id kg11-20020a17090776eb00b0093b2d0bb60emr680190ejc.74.1681169525420; Mon, 10 Apr 2023 16:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681169525; cv=none; d=google.com; s=arc-20160816; b=CMcryrwvLPyZPNjd/mQ4nRcQvn06qbaA4jDgc5JeJK1lJJ5zGKKuamqQP+MQ/rZ5WB nOVEogtQVYDK2iY/vxLb8T7jkCrnWonKTCFcPx/t1f+WrKcJ35kclfeVgIVM0o7+Sr8t uUdP4V7fsIDTKJh0lgvjWPQBSghkhjhe9TSWk9zplvqI5qu5LAWxJxNKk8skwUKT0TLW /IAl3jr25d30Z4e118+F+uNb7GifFi0USpTaPf/FhfxmGMhs3jycWQxDZ9jKzi26TtYQ bPpxXjYctx38AGVSAQKfk/GlxvCd76n5ee4uUHHcpPJ2/HjMtRi5aPeOgn1/eSwF8AVX 0R6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=G/VCg72mZQ/NHm6OpYah9b/VaUR4O+V+V5z1ynzGieo=; b=UJypCtn8OzF6UEWzxbQ6io0DCn1oqxhXwsI7Tt55gUgaoDHYjeQm+cezDJpSc7UD+v 3PONfJlDHFRjnZ1fQW/tXQU3kqLmRiR3T3H/IU6sJQ9+7Nn/xM4X3KMIwTDu7tpcq0Qn m2sV8ZuEl86aP43P4MmY2o8kEiRAjBNo7vLOoOtQgRzWqSbPIXWl+jXw1a3VfPKHiyaw UkLwiDTSo9OkQWnDn26wzKuf5bJGNiUNu8kIFIS3hmCEorm3ExNF1k7ii4ywiUYagFei pMo3JjQ5Tml2ikvF1AXCMUVMgCrH4Ch/zktjTz/4lXlGWGWDIwoLPtc9Nc4Pchy1Lacu rQNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a170906348800b0094d66aebd7dsi1225100ejb.576.2023.04.10.16.31.41; Mon, 10 Apr 2023 16:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbjDJX0s (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Mon, 10 Apr 2023 19:26:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjDJX0q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Apr 2023 19:26:46 -0400 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A58841BC7; Mon, 10 Apr 2023 16:26:45 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-184549428acso3704429fac.8; Mon, 10 Apr 2023 16:26:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681169205; x=1683761205; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G/VCg72mZQ/NHm6OpYah9b/VaUR4O+V+V5z1ynzGieo=; b=ZDBb9o8VozixuGUO/0aw2qJfTy9oGtzZOZGUi0hSti+AwlQKJS9qGkD1FqPSCKXcas bzen0672qTscks3qOiQgKr8IqpNQfclF4WrBCivVGkoY+5RSzzrjA9RkM60GUCm+JYeI xQFdXjx9Z3kCYtboL2vheRjxoElrlH4MfIjvxBrjiEy4JAePcaDX1hhb6PVpnpSZ6RZJ XF/BZjOxYBLzl18Zd6Z/M9FA3hNxdmlvhN3gmlLjtgNRZbeY3feenKAgqlwv4ROsuVfo onDZbAOy+Tb2f9VARM1N4765+3YENur/2b55ZNEY9DTp1EkNDVk0trhK2G8Pxr9KEgEV kkWA== X-Gm-Message-State: AAQBX9cbFGK/fDljSdlyssj0f1TM5cqgEOHhfKCkLoNybMuXriejUJzQ wTqYd1a9oliNCxVyBm3t+Q== X-Received: by 2002:a05:6870:8087:b0:184:3995:4d70 with SMTP id q7-20020a056870808700b0018439954d70mr4161695oab.38.1681169204870; Mon, 10 Apr 2023 16:26:44 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id zg22-20020a0568716b1600b0017197629658sm4490790oab.56.2023.04.10.16.26.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 16:26:44 -0700 (PDT) Received: (nullmailer pid 1561249 invoked by uid 1000); Mon, 10 Apr 2023 23:26:43 -0000 From: Rob Herring <robh@kernel.org> To: Thinh Nguyen <Thinh.Nguyen@synopsys.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Chunfeng Yun <chunfeng.yun@mediatek.com> Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] usb: Add explicit of.h of_platform.h include Date: Mon, 10 Apr 2023 18:26:38 -0500 Message-Id: <20230410232639.1561152-1-robh@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762834016441747253?= X-GMAIL-MSGID: =?utf-8?q?1762834016441747253?= |
Series |
usb: Add explicit of.h of_platform.h include
|
|
Commit Message
Rob Herring
April 10, 2023, 11:26 p.m. UTC
Several USB drivers use of_platform_* functions which are declared in
of_platform.h. of_platform.h gets implicitly included by of_device.h,
but that is going to be removed soon. Nothing else depends on of_device.h
so it can be dropped.
Signed-off-by: Rob Herring <robh@kernel.org>
---
drivers/usb/dwc3/dwc3-am62.c | 2 +-
drivers/usb/gadget/udc/rzv2m_usb3drd.c | 2 +-
drivers/usb/mtu3/mtu3_host.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Comments
On Mon, Apr 10, 2023, Rob Herring wrote: > Several USB drivers use of_platform_* functions which are declared in > of_platform.h. of_platform.h gets implicitly included by of_device.h, > but that is going to be removed soon. Nothing else depends on of_device.h > so it can be dropped. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/usb/dwc3/dwc3-am62.c | 2 +- > drivers/usb/gadget/udc/rzv2m_usb3drd.c | 2 +- > drivers/usb/mtu3/mtu3_host.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c > index 173cf3579c55..4d674a243784 100644 > --- a/drivers/usb/dwc3/dwc3-am62.c > +++ b/drivers/usb/dwc3/dwc3-am62.c > @@ -11,7 +11,7 @@ > #include <linux/platform_device.h> > #include <linux/mfd/syscon.h> > #include <linux/of.h> > -#include <linux/of_device.h> > +#include <linux/of_platform.h> > #include <linux/pm_runtime.h> > #include <linux/clk.h> > #include <linux/regmap.h> > diff --git a/drivers/usb/gadget/udc/rzv2m_usb3drd.c b/drivers/usb/gadget/udc/rzv2m_usb3drd.c > index 3c8bbf843038..8aafd1ddf126 100644 > --- a/drivers/usb/gadget/udc/rzv2m_usb3drd.c > +++ b/drivers/usb/gadget/udc/rzv2m_usb3drd.c > @@ -6,7 +6,7 @@ > */ > > #include <linux/io.h> > -#include <linux/of_device.h> > +#include <linux/of_platform.h> > #include <linux/platform_device.h> > #include <linux/pm_runtime.h> > #include <linux/reset.h> > diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c > index f3903367a6a0..177d2caf887c 100644 > --- a/drivers/usb/mtu3/mtu3_host.c > +++ b/drivers/usb/mtu3/mtu3_host.c > @@ -11,7 +11,7 @@ > #include <linux/irq.h> > #include <linux/kernel.h> > #include <linux/mfd/syscon.h> > -#include <linux/of_device.h> > +#include <linux/of_platform.h> > #include <linux/regmap.h> > > #include "mtu3.h" > -- > 2.39.2 > For dwc3 change: Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Thanks, Thinh
On Mon, 2023-04-10 at 18:26 -0500, Rob Herring wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > Several USB drivers use of_platform_* functions which are declared in > of_platform.h. of_platform.h gets implicitly included by of_device.h, > but that is going to be removed soon. Nothing else depends on > of_device.h > so it can be dropped. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/usb/dwc3/dwc3-am62.c | 2 +- > drivers/usb/gadget/udc/rzv2m_usb3drd.c | 2 +- > drivers/usb/mtu3/mtu3_host.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3- > am62.c > index 173cf3579c55..4d674a243784 100644 > --- a/drivers/usb/dwc3/dwc3-am62.c > +++ b/drivers/usb/dwc3/dwc3-am62.c > @@ -11,7 +11,7 @@ > #include <linux/platform_device.h> > #include <linux/mfd/syscon.h> > #include <linux/of.h> > -#include <linux/of_device.h> > +#include <linux/of_platform.h> > #include <linux/pm_runtime.h> > #include <linux/clk.h> > #include <linux/regmap.h> > diff --git a/drivers/usb/gadget/udc/rzv2m_usb3drd.c > b/drivers/usb/gadget/udc/rzv2m_usb3drd.c > index 3c8bbf843038..8aafd1ddf126 100644 > --- a/drivers/usb/gadget/udc/rzv2m_usb3drd.c > +++ b/drivers/usb/gadget/udc/rzv2m_usb3drd.c > @@ -6,7 +6,7 @@ > */ > > #include <linux/io.h> > -#include <linux/of_device.h> > +#include <linux/of_platform.h> > #include <linux/platform_device.h> > #include <linux/pm_runtime.h> > #include <linux/reset.h> > diff --git a/drivers/usb/mtu3/mtu3_host.c > b/drivers/usb/mtu3/mtu3_host.c > index f3903367a6a0..177d2caf887c 100644 > --- a/drivers/usb/mtu3/mtu3_host.c > +++ b/drivers/usb/mtu3/mtu3_host.c > @@ -11,7 +11,7 @@ > #include <linux/irq.h> > #include <linux/kernel.h> > #include <linux/mfd/syscon.h> > -#include <linux/of_device.h> > +#include <linux/of_platform.h> > #include <linux/regmap.h> For mtu3 change: Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Thanks > > #include "mtu3.h" > -- > 2.39.2 >
diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c index 173cf3579c55..4d674a243784 100644 --- a/drivers/usb/dwc3/dwc3-am62.c +++ b/drivers/usb/dwc3/dwc3-am62.c @@ -11,7 +11,7 @@ #include <linux/platform_device.h> #include <linux/mfd/syscon.h> #include <linux/of.h> -#include <linux/of_device.h> +#include <linux/of_platform.h> #include <linux/pm_runtime.h> #include <linux/clk.h> #include <linux/regmap.h> diff --git a/drivers/usb/gadget/udc/rzv2m_usb3drd.c b/drivers/usb/gadget/udc/rzv2m_usb3drd.c index 3c8bbf843038..8aafd1ddf126 100644 --- a/drivers/usb/gadget/udc/rzv2m_usb3drd.c +++ b/drivers/usb/gadget/udc/rzv2m_usb3drd.c @@ -6,7 +6,7 @@ */ #include <linux/io.h> -#include <linux/of_device.h> +#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h> diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c index f3903367a6a0..177d2caf887c 100644 --- a/drivers/usb/mtu3/mtu3_host.c +++ b/drivers/usb/mtu3/mtu3_host.c @@ -11,7 +11,7 @@ #include <linux/irq.h> #include <linux/kernel.h> #include <linux/mfd/syscon.h> -#include <linux/of_device.h> +#include <linux/of_platform.h> #include <linux/regmap.h> #include "mtu3.h"