Message ID | 20231009211356.3242037-14-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp2125278vqo; Mon, 9 Oct 2023 14:16:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEx5JHYfwrz7KmadN92KA0TQTXxz82QzkZM3IbSrfQKYBXC4IbaYUQ5jsKqzcfo8fLMAAxX X-Received: by 2002:a17:90b:3a86:b0:278:fbe3:a31f with SMTP id om6-20020a17090b3a8600b00278fbe3a31fmr13876926pjb.37.1696886186874; Mon, 09 Oct 2023 14:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696886186; cv=none; d=google.com; s=arc-20160816; b=gMyjhOoQKvHEu38SgayDo+NFud4URsDk4obAiTCBtPL6PFMmqBjLSFd7nK4YWmABFO OV2rKIzuXkAj5uYQRdPV2zGz0wFpX8sgxIY5aWIURd3/tbom+VJOhN+NnRtZK9vXIsBA OAt3jtimuvJ450ejq/ScwaibmzzPRpkRm01bvY/6tsx8sDxC66YYIX63lGWiqZ/oWY0g 7Gjc/1yih0YbCyPXt59HnHu7fW3ZpZ/T16FNQhW9BToF/FpHmWOVSsjLojZp/igrDxv0 0SYgr4rSMij0Jf2dAjZ+hYy1pFLGwOH1MTS6D7K0j7AGrViZfAW30d8dT6CUBbgn78pH TsIw== 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:dkim-signature; bh=zKKLV8FNzmWhUuy1R62BUrauc+puibSq14+QmD/bsys=; fh=sBFfR4HRngJOCWKu1gy2mhVocPukf0jBJU2AWmEeETE=; b=Cjb9/SDHqvttqN5hnFVJLgFIHKkYmXOVSpS8ZJPt27KIlFKnQGCpil0PsPYKu9Obi0 qVDUV/SLWcMNk1X1WlzM7uy9wvtzwSbG6rlprpAl/yAgHMb3d8WGgm4ux1an73DLlZZw V5eLJth8e/T1jxc2j3El1ARbpORQVUheH8hXnE5zBjmaTpIZPixhGP6Wm8ldNABtk/kH S8LEigS46mHpUUghtX5DiODLOyzqgXdcuD9ALUlPuVxoVdF+by5Dsc97tr/9iIGJ+yWE JJ8RXyWLvOZDI+bnkVR5KvTzlYZVEklU0AgS/eFMBzM6uzy1exZVQKA7b1SJV79/dmo3 6qJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o6sICD0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f18-20020a17090ace1200b00278ea235413si12565981pju.31.2023.10.09.14.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 14:16:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o6sICD0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CA8F0811678C; Mon, 9 Oct 2023 14:16:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378843AbjJIVPu (ORCPT <rfc822;makky5685@gmail.com> + 19 others); Mon, 9 Oct 2023 17:15:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378682AbjJIVPN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Oct 2023 17:15:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4CA4D62; Mon, 9 Oct 2023 14:14:40 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C301C433C7; Mon, 9 Oct 2023 21:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696886080; bh=pRTsya/t7TdWrezPtSMk6IUt3fMvEjFpaEopjd4gbVI=; h=From:To:Cc:Subject:Date:From; b=o6sICD0Dp8hm9by3EoXOmN7rZyOxzy41mzWWZeA2edPwQKT4Z4j6XD/A4HeeLJ6vz lyn5Iv+WTYGaD3Cfvxl7or7KTR1OYRWCj/43eohEq8mCmXybQYcJ2l/qacVv9r7lw9 6z7i3jOEbPWAgfT+VupGMt7hbz+o81sKpe7rr1lR/H1jujYnWjz7v5ldFMVt/9QwuD kh7L2NISfOSQ8WIkLOC6pEm2hc3WWoGMl9OjofWsTfD/lmLodu+ZoC63or6+IsxrAa nq+kC1GriFqr7nDM5vWByChxsWqzTD0rCqzyG3WwuJhNSvFs7ctF9W+l6bV8ca/GeP ICeXprpD6LE4g== Received: (nullmailer pid 3246318 invoked by uid 1000); Mon, 09 Oct 2023 21:14:14 -0000 From: Rob Herring <robh@kernel.org> To: Alain Volmat <alain.volmat@foss.st.com>, Mark Brown <broonie@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com> Cc: linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: stm32: Explicitly include correct DT includes Date: Mon, 9 Oct 2023 16:13:44 -0500 Message-ID: <20231009211356.3242037-14-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,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 fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 14:16:24 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779314129930438465 X-GMAIL-MSGID: 1779314129930438465 |
Series |
spi: stm32: Explicitly include correct DT includes
|
|
Commit Message
Rob Herring
Oct. 9, 2023, 9:13 p.m. UTC
The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.
Signed-off-by: Rob Herring <robh@kernel.org>
---
drivers/spi/spi-stm32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Hi Rob, thanks for the patch. Acked-by: Alain Volmat <alain.volmat@foss.st.com> Regards, Alain On Mon, Oct 09, 2023 at 04:13:44PM -0500, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. They also include platform_device.h > and of.h. As a result, there's a pretty much random mix of those include > files used throughout the tree. In order to detangle these headers and > replace the implicit includes with struct declarations, users need to > explicitly include the correct includes. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/spi/spi-stm32.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c > index ef665f470c5b..e6e3e4ea29f9 100644 > --- a/drivers/spi/spi-stm32.c > +++ b/drivers/spi/spi-stm32.c > @@ -13,7 +13,8 @@ > #include <linux/interrupt.h> > #include <linux/iopoll.h> > #include <linux/module.h> > -#include <linux/of_platform.h> > +#include <linux/of.h> > +#include <linux/platform_device.h> > #include <linux/pinctrl/consumer.h> > #include <linux/pm_runtime.h> > #include <linux/reset.h> > -- > 2.42.0 >
diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index ef665f470c5b..e6e3e4ea29f9 100644 --- a/drivers/spi/spi-stm32.c +++ b/drivers/spi/spi-stm32.c @@ -13,7 +13,8 @@ #include <linux/interrupt.h> #include <linux/iopoll.h> #include <linux/module.h> -#include <linux/of_platform.h> +#include <linux/of.h> +#include <linux/platform_device.h> #include <linux/pinctrl/consumer.h> #include <linux/pm_runtime.h> #include <linux/reset.h>