Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp96716rdb; Mon, 14 Aug 2023 10:31:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEruwWxOVnziv7JpO77RYtmeUNbaIwpuMnwVrnoMWT8YH9ZPAJYT6q4seBC/pGvdgfgLwY1 X-Received: by 2002:a05:6a20:1056:b0:13d:1d14:6693 with SMTP id gt22-20020a056a20105600b0013d1d146693mr7300602pzc.45.1692034284625; Mon, 14 Aug 2023 10:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692034284; cv=none; d=google.com; s=arc-20160816; b=mmnYV7kJIYrcm+B51zo7pe9opsnniQO21yza+2KbHa4w4tmA/rkrgowUe+lcih/JBg BPKqQF8WPGSr1PiEyV5sGVNn5GXUqkCIkjH9tFqrSeCb8k+3Db6nNrRVGBYKsOgwgp+V Meq8b8d9qa2CUKfM47P9kUndsvvunYis5ntR80fqwlHP4mV8gtuMtj05wvNVrNn+880L 7fWJf28HT925Ilh6vKRHEc6Az6TwNwSWnaLftLYC6LtmfRkxkna238dggohXOJkonPsQ 4jWNSnK47QlHtVyeKz03gqU8DBj+KkAFb/rO0rYj83GjJ32hAzKqpiGTjTB0P/onCP0V VzxA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nhZakCORHJvvcHJeYynzuiqb7Qqvi9fc/FhpwNnEQh4=; fh=mF7t2inBLrKgTa5UEZSlQNvpFgJW5lsDOgqVUDPILJg=; b=SqjK8CkM6kMXDTUKT4vXD4IMMsmrJH5zWljxDxTCtBU5Tr5tchj8ZeGTpkblnFkl7w gSOFoT3UKREq+qNDOiOAPVNl5sSmxVg75KLg41+7seEsxuDdkfI7ip02mwix6C2+oJrW rP9nz5Y/B2zaFH24ngg1SLHoIM1qMw0j8l4zwNaGkclSOwG1PmqbaZ3UT+UinAwXiA5Z XsHuQiQTfMlz08noWRCZ2+NjURnhqbMkNgBwZJfe7mvuODAThrEm4lAHTnGSNyUVmoBo qrge8zgZnrM9RRYiSldfRxWP5UwmJUmaREIlPm9LGCbm4XBFFD+zCRZKZB96AZmIaVP6 8XTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UU1zEQkS; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k127-20020a636f85000000b00565bcc758b0si1973025pgc.827.2023.08.14.10.31.11; Mon, 14 Aug 2023 10:31:24 -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; dkim=pass header.i=@linaro.org header.s=google header.b=UU1zEQkS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232570AbjHNQyF (ORCPT + 99 others); Mon, 14 Aug 2023 12:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232249AbjHNQxw (ORCPT ); Mon, 14 Aug 2023 12:53:52 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69DD8E65 for ; Mon, 14 Aug 2023 09:53:51 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-52164adea19so5880062a12.1 for ; Mon, 14 Aug 2023 09:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692032030; x=1692636830; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nhZakCORHJvvcHJeYynzuiqb7Qqvi9fc/FhpwNnEQh4=; b=UU1zEQkSz+aiRtzKBsG3ob0Lp/qsaAQOXAQCtaon4JRzjCEk5WZGKpOxxXumJ3rx+G GWxdSBaErrFO22F0R5K1EK9G9Vivk55zeo32t5KN5CzTDbRR43ugLNwujNEOQNH9fcHn 2pa43+3FIrQShNODVGT5+Smi4phqdOl4hXCNDZyoQOopZjb68I0ieAQEp5zYfC9xR/h2 o7fd0TrWC2fbF+7GkVsL5wPUx51NyAVbkHW2ddoz4ojcDm/mw8UOvGH5nSAnN9/L4Fpz +ypL3G5EYkH90ZEgVRjAo7gHGONVmI28j26onWBulnjA8Pl5IFfQ4+eHOwsQZIIcMnAf HALA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692032030; x=1692636830; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nhZakCORHJvvcHJeYynzuiqb7Qqvi9fc/FhpwNnEQh4=; b=TRPsFlHHbe6mtWvdEs7WipfRM80ZgeF2zzmHCWkGAaTbtT8tYRg6kpiVBnedTlf2Pr ZAb8l83fQYoccVM80x9oCoSQEEIwerw5JLiHge5C+fbzes65AsARfTeX3UR0xI9ep+BQ fomvVFnjt3TlCo6JGMK6Gpy6jf8Ik+xr0mlbdcPizM2p79mMxMQ1Cv1M5bsi0GO1me4y 8SUBjjS3tc5itlZ6uPrRXlobOLTttJHZVS8VUD7QA0KAE/Ee+zCW8LGUuUSrrkoYQNNr lAVuYycgA6sJ7IjUpx8ZBB/+4rb28pnDRSaz/scmljQzxHnD6pON78xjPPDMOt0OYks9 oTeQ== X-Gm-Message-State: AOJu0YyO69WyXqsS1TTHL/luYAgrmUPk+rDtQxKghZhxoMwdfswPvQ0d Mbgmov4DjJhClrMKmBmHl0TTYQ== X-Received: by 2002:a05:6402:206a:b0:51e:5251:8f45 with SMTP id bd10-20020a056402206a00b0051e52518f45mr7529320edb.4.1692032029902; Mon, 14 Aug 2023 09:53:49 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id n5-20020aa7c785000000b0052338f5b2a4sm5811267eds.86.2023.08.14.09.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 09:53:48 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Rob Herring , Srinivas Kandagatla Subject: [PATCH 13/22] nvmem: Explicitly include correct DT includes Date: Mon, 14 Aug 2023 17:52:43 +0100 Message-Id: <20230814165252.93422-14-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230814165252.93422-1-srinivas.kandagatla@linaro.org> References: <20230814165252.93422-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Herring 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 Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/bcm-ocotp.c | 1 - drivers/nvmem/core.c | 1 - drivers/nvmem/imx-iim.c | 1 - drivers/nvmem/imx-ocotp-ele.c | 2 +- drivers/nvmem/imx-ocotp-scu.c | 2 +- drivers/nvmem/imx-ocotp.c | 1 - drivers/nvmem/lpc18xx_otp.c | 1 - drivers/nvmem/meson-mx-efuse.c | 1 - drivers/nvmem/qcom-spmi-sdam.c | 2 +- drivers/nvmem/rave-sp-eeprom.c | 2 +- drivers/nvmem/sc27xx-efuse.c | 1 - drivers/nvmem/snvs_lpgpr.c | 3 ++- drivers/nvmem/sprd-efuse.c | 2 +- drivers/nvmem/sunplus-ocotp.c | 2 +- drivers/nvmem/sunxi_sid.c | 1 - drivers/nvmem/u-boot-env.c | 2 +- 16 files changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/nvmem/bcm-ocotp.c b/drivers/nvmem/bcm-ocotp.c index 0c1fa0c4feb2..2490f44caa40 100644 --- a/drivers/nvmem/bcm-ocotp.c +++ b/drivers/nvmem/bcm-ocotp.c @@ -8,7 +8,6 @@ #include #include #include -#include #include /* diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 3f8c7718412b..2251103b2c5f 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -17,7 +17,6 @@ #include #include #include -#include #include struct nvmem_device { diff --git a/drivers/nvmem/imx-iim.c b/drivers/nvmem/imx-iim.c index c86339a7f583..f13bbd164086 100644 --- a/drivers/nvmem/imx-iim.c +++ b/drivers/nvmem/imx-iim.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/nvmem/imx-ocotp-ele.c b/drivers/nvmem/imx-ocotp-ele.c index f1cbbc9afeb8..cf920542f939 100644 --- a/drivers/nvmem/imx-ocotp-ele.c +++ b/drivers/nvmem/imx-ocotp-ele.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/nvmem/imx-ocotp-scu.c b/drivers/nvmem/imx-ocotp-scu.c index 399e1eb8b4c1..c38d9c1c3f48 100644 --- a/drivers/nvmem/imx-ocotp-scu.c +++ b/drivers/nvmem/imx-ocotp-scu.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index ab556c011f3e..a223d9537f22 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/nvmem/lpc18xx_otp.c b/drivers/nvmem/lpc18xx_otp.c index 8faed05e3cbe..adc9948e7b2e 100644 --- a/drivers/nvmem/lpc18xx_otp.c +++ b/drivers/nvmem/lpc18xx_otp.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include diff --git a/drivers/nvmem/meson-mx-efuse.c b/drivers/nvmem/meson-mx-efuse.c index 461e3ad87bcd..d6d7aeda31f9 100644 --- a/drivers/nvmem/meson-mx-efuse.c +++ b/drivers/nvmem/meson-mx-efuse.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/nvmem/qcom-spmi-sdam.c b/drivers/nvmem/qcom-spmi-sdam.c index f822790db49e..70f2d4f2efbf 100644 --- a/drivers/nvmem/qcom-spmi-sdam.c +++ b/drivers/nvmem/qcom-spmi-sdam.c @@ -6,8 +6,8 @@ #include #include #include -#include #include +#include #include #define SDAM_MEM_START 0x40 diff --git a/drivers/nvmem/rave-sp-eeprom.c b/drivers/nvmem/rave-sp-eeprom.c index c456011b75e8..df6a1c594b78 100644 --- a/drivers/nvmem/rave-sp-eeprom.c +++ b/drivers/nvmem/rave-sp-eeprom.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/nvmem/sc27xx-efuse.c b/drivers/nvmem/sc27xx-efuse.c index c825fc902d10..2210da40dfbd 100644 --- a/drivers/nvmem/sc27xx-efuse.c +++ b/drivers/nvmem/sc27xx-efuse.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/nvmem/snvs_lpgpr.c b/drivers/nvmem/snvs_lpgpr.c index 4692aa985bd6..89c27112320f 100644 --- a/drivers/nvmem/snvs_lpgpr.c +++ b/drivers/nvmem/snvs_lpgpr.c @@ -7,7 +7,8 @@ #include #include #include -#include +#include +#include #include #define IMX6Q_SNVS_HPLR 0x00 diff --git a/drivers/nvmem/sprd-efuse.c b/drivers/nvmem/sprd-efuse.c index 4f1fcbfec394..7e6e31db4baa 100644 --- a/drivers/nvmem/sprd-efuse.c +++ b/drivers/nvmem/sprd-efuse.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #define SPRD_EFUSE_ENABLE 0x20 diff --git a/drivers/nvmem/sunplus-ocotp.c b/drivers/nvmem/sunplus-ocotp.c index f85350b17d67..f3a18aa0a6c7 100644 --- a/drivers/nvmem/sunplus-ocotp.c +++ b/drivers/nvmem/sunplus-ocotp.c @@ -13,8 +13,8 @@ #include #include #include +#include #include -#include #include /* diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 6bfe02ab169a..5d364d85347f 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/nvmem/u-boot-env.c b/drivers/nvmem/u-boot-env.c index ee9fd9989b6e..80c5382b361c 100644 --- a/drivers/nvmem/u-boot-env.c +++ b/drivers/nvmem/u-boot-env.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include -- 2.25.1