Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2766755rwp; Fri, 14 Jul 2023 11:00:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlFEg3TbZQ+FdZaH8Pr5nTzkl9+0i3hBPCsaRBOPbrSSCTg9NteylseEoSurQytJqKe4evl1 X-Received: by 2002:a17:902:ea11:b0:1b9:d34d:bf6d with SMTP id s17-20020a170902ea1100b001b9d34dbf6dmr4488779plg.52.1689357624862; Fri, 14 Jul 2023 11:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689357624; cv=none; d=google.com; s=arc-20160816; b=hP8ptof+sYpN2RsuQ26X7awNVtpijcFkW/5U99IJhKyz4JCEb7C/bwH+HPGUVnJIlM 0aLbUV3Oc3tJ0tw7LrvJqUtd4LJXCX335gPhH8J0mZxYqyBveMgE1g07olnxTSHqpiCk XVEhlH/CcaOxVg+9Vq4R9OtYPSDs09nXM/p4rEkRXhaywloX2FRJdClE0/dcZRcZjyHi gTSvjWD9FHkUZICnj4McAuVjByWrAn666UH6wpj1E1a09QBRPoHWqhzj9D68BAAkkb9u JbmTz/BAcgxdZRCiKWQulu8mo/aYizMy+8g0GvJBZW9OxNM8l1v5qyjcGaNOJ3bMP0uG Jv+A== 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=D5kyFLxcFf28C4xAlfiZC8aBDg3X1GkkexShGXOhf5Q=; fh=C6QSE5mfiYX72bekhyOUYWwjpAv1rNTeSX9sedvaJME=; b=QocjYTvwgl8NOBOzi345fChRCyDrPzFMPdOeLi71/WodxnLamIMiuug9qu68ozOKcm Cuv+cXjoB75u10wEK393u72OKD+ZKnef8lTstK/daleVS6bpV9c0pCleD9TQOks749Jm IEO5Lq4LUzqWRK3M4o75+LCRLANOH9lrgIgdf4ClXJ2HoiKNoctlptDdCiJC2FkZ6QQp 5nr0OSj+0z93g2qEnyLUJrgR4uxMtqJTBb3s2CTHXPsH7vWOG9UrWVozk/zZbinVQA4b FrAGoGhQO/i2Cd7eK8I6dKXXhgHXICj8Zhbyx3tE59v8shF3sKn+2befnrDxS8IBsHHY HtFg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170903124f00b001b9d180fd9asi7693231plh.121.2023.07.14.11.00.12; Fri, 14 Jul 2023 11:00: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; 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 S235922AbjGNRsa (ORCPT + 99 others); Fri, 14 Jul 2023 13:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236458AbjGNRsB (ORCPT ); Fri, 14 Jul 2023 13:48:01 -0400 Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 441ECE4F; Fri, 14 Jul 2023 10:47:42 -0700 (PDT) Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-345d3c10bdfso9621955ab.2; Fri, 14 Jul 2023 10:47:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356829; x=1691948829; 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=D5kyFLxcFf28C4xAlfiZC8aBDg3X1GkkexShGXOhf5Q=; b=apBiZkb/qMovIJHt8wf8E2fa6ZIMQ1rUlEF21JcKAyZ0paIAwVvzEDIAMidm+evptV QbIU1CEUionoZEdPDKhHdIYiteQya9iMINscnBzITCLPvKbiYzSLWO1ImiCEJhcZNgkY C+dkPC5OVg5+kTX+EUQttWsOI05Xd1fF7pqXiEUyQC8rj6yltBwmIcDQiRIYLjSYz0qb r9vpkOcfyqBPU935p2nXpey40zKBWHFQWIskzNZckDxDgK0lQATMkplmws2uu0vAUout l7Aem1ya0eGsuZnebcqRE7hOtwKFw7l3G2vl4fJ6B+N7Cf3RIddGc2COqe22uIMj0lco 7RUg== X-Gm-Message-State: ABy/qLabeskL6qFy9H5wWm6yxotmTclPelEBme9DlzQ2BLmBvNLy6qw8 7L011XEPKM7SzKkNEDUkaQ== X-Received: by 2002:a05:6e02:1544:b0:348:4ab6:98cc with SMTP id j4-20020a056e02154400b003484ab698ccmr3137663ilu.14.1689356828681; Fri, 14 Jul 2023 10:47:08 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id q16-20020a920510000000b00345a769de67sm2919502ile.15.2023.07.14.10.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:47:07 -0700 (PDT) Received: (nullmailer pid 4058855 invoked by uid 1000); Fri, 14 Jul 2023 17:46:54 -0000 From: Rob Herring To: Pavel Machek , Lee Jones , Vadim Pasternak , Riku Voipio Cc: devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] leds: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:46:50 -0600 Message-Id: <20230714174651.4058753-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/leds/leds-ariel.c | 2 +- drivers/leds/leds-cpcap.c | 2 +- drivers/leds/leds-cr0014114.c | 2 +- drivers/leds/leds-is31fl32xx.c | 1 - drivers/leds/leds-mlxreg.c | 1 - drivers/leds/leds-pca9532.c | 1 - drivers/leds/leds-pm8058.c | 1 - drivers/leds/leds-pwm.c | 2 +- drivers/leds/leds-spi-byte.c | 2 +- drivers/leds/leds-syscon.c | 3 +-- drivers/leds/leds-ti-lmu-common.c | 2 +- drivers/leds/leds-tlc591xx.c | 1 - drivers/leds/rgb/leds-qcom-lpg.c | 1 - 13 files changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/leds/leds-ariel.c b/drivers/leds/leds-ariel.c index 49e1bddaa15e..dd319c7e385f 100644 --- a/drivers/leds/leds-ariel.c +++ b/drivers/leds/leds-ariel.c @@ -7,8 +7,8 @@ #include #include +#include #include -#include enum ec_index { EC_BLUE_LED = 0x01, diff --git a/drivers/leds/leds-cpcap.c b/drivers/leds/leds-cpcap.c index 7d41ce8c9bb1..87354f17644b 100644 --- a/drivers/leds/leds-cpcap.c +++ b/drivers/leds/leds-cpcap.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/leds/leds-cr0014114.c b/drivers/leds/leds-cr0014114.c index c87686bd7c18..b33bca397ea6 100644 --- a/drivers/leds/leds-cr0014114.c +++ b/drivers/leds/leds-cr0014114.c @@ -4,8 +4,8 @@ #include #include +#include #include -#include #include #include diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c index 72cb56d305c4..b0a0be77bb33 100644 --- a/drivers/leds/leds-is31fl32xx.c +++ b/drivers/leds/leds-is31fl32xx.c @@ -15,7 +15,6 @@ #include #include #include -#include /* Used to indicate a device has no such register */ #define IS31FL32XX_REG_NONE 0xFF diff --git a/drivers/leds/leds-mlxreg.c b/drivers/leds/leds-mlxreg.c index b7855c93bd72..39210653acf7 100644 --- a/drivers/leds/leds-mlxreg.c +++ b/drivers/leds/leds-mlxreg.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c index 8b5c62083e50..bf8bb8fc007c 100644 --- a/drivers/leds/leds-pca9532.c +++ b/drivers/leds/leds-pca9532.c @@ -18,7 +18,6 @@ #include #include #include -#include /* m = num_leds*/ #define PCA9532_REG_INPUT(i) ((i) >> 3) diff --git a/drivers/leds/leds-pm8058.c b/drivers/leds/leds-pm8058.c index b9233f14b646..3f49a5181892 100644 --- a/drivers/leds/leds-pm8058.c +++ b/drivers/leds/leds-pm8058.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c index 29194cc382af..38624e5161d8 100644 --- a/drivers/leds/leds-pwm.c +++ b/drivers/leds/leds-pwm.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/leds/leds-spi-byte.c b/drivers/leds/leds-spi-byte.c index 2c7ffc3c78e6..9d91f21842f2 100644 --- a/drivers/leds/leds-spi-byte.c +++ b/drivers/leds/leds-spi-byte.c @@ -30,7 +30,7 @@ #include #include -#include +#include #include #include #include diff --git a/drivers/leds/leds-syscon.c b/drivers/leds/leds-syscon.c index e38abb5e60c1..360a376fa738 100644 --- a/drivers/leds/leds-syscon.c +++ b/drivers/leds/leds-syscon.c @@ -7,8 +7,7 @@ */ #include #include -#include -#include +#include #include #include #include diff --git a/drivers/leds/leds-ti-lmu-common.c b/drivers/leds/leds-ti-lmu-common.c index d7f10ad721ba..b2491666b5dc 100644 --- a/drivers/leds/leds-ti-lmu-common.c +++ b/drivers/leds/leds-ti-lmu-common.c @@ -7,7 +7,7 @@ #include #include -#include +#include #include diff --git a/drivers/leds/leds-tlc591xx.c b/drivers/leds/leds-tlc591xx.c index dfc6fb2b3e52..945e831ef4ac 100644 --- a/drivers/leds/leds-tlc591xx.c +++ b/drivers/leds/leds-tlc591xx.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c index 59581b3e25ca..fd7676aa243d 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include -- 2.40.1