Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4075821rdb; Wed, 30 Aug 2023 15:02:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGebjlFe1yPGni7VT8lG/D1KvB/GFV4S2f9d9o+cKfRtURNZWHwpw8dt9AOdz+07H+sgt19 X-Received: by 2002:a17:906:19:b0:99d:f6e9:1cf8 with SMTP id 25-20020a170906001900b0099df6e91cf8mr2736787eja.20.1693432954768; Wed, 30 Aug 2023 15:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693432954; cv=none; d=google.com; s=arc-20160816; b=QqBBpNNNZtJdv6oSPLcLFqTMMtld0gzw9sLS6WuCSs8TYJl9mOYfLs7QRE6oCrbBHL aLfakqApjbeud8/ajFU+5Ql1O4L+Lt49j9cQdZqakPpn0I44NdX8sXUbxjDU73OOcCqI h3bnp0mdNXsKBytuNX3pPD9Ld2plnmTl/4fq4/JgQ/ez+5X7k91qDjpFtMlOtxpiw2mn Am55ijkUQei3N5+bXZa8eCepvoymJVoKMqvfLe3z/t6b3Q7FZ1KhUWrtBaHuMcyhGWtw a+hmOr/YWVl4N+lxfQsk6X9pmL7L09s7yeY4e6xKo2XZBT+lwO7fH3Ckkp4SgYfpRyEp JA3A== 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; bh=vcWCVYtuljOyqHaZ/60/Xbdr2R9rWKXNkHQIRtihBjA=; fh=Iu3DKW8DB+SdBk76NxfHCgEuJ321e07HmQDLn8wS3ro=; b=NyhlufiS4yaTyLW1xdcKwW5UVGja8ixf50fhj3B/DGGPg3suBxWuoeKj1t5m7rG5q+ hUyUP0tZG7sWoYTBXrLXTVvoCPjPghOgVMTFX3tuv+dBV94mqa4FIzSDYrBjtv7JKe9t hz6WdHPRlV8kfL24pbrstyoGfwwVxaNtAhYWz8v+wHLVNGvtRhkjOSG5mhALP7NJWpE6 W3+tMLB3J+xMK3FGtT55oangwasqHYOOYojdprv6tFO25/y4nqWCtTm6COU8B051Cvde NLSCFDtq1As/1541KkSJVSNiwgMCxNN67PQ7rxELmaw9iuckCyMrFWwNsaelWbTiWYgP qDfw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ti2-20020a170907c20200b00992ac0466e2si39009ejc.653.2023.08.30.15.02.01; Wed, 30 Aug 2023 15:02:34 -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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344070AbjH3S4y (ORCPT + 99 others); Wed, 30 Aug 2023 14:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343820AbjH3RIm (ORCPT ); Wed, 30 Aug 2023 13:08:42 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4C281A1 for ; Wed, 30 Aug 2023 10:08:38 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,214,1688396400"; d="scan'208";a="174495930" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 31 Aug 2023 02:08:38 +0900 Received: from localhost.localdomain (unknown [10.226.92.150]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 9E9954005B33; Thu, 31 Aug 2023 02:08:33 +0900 (JST) From: Biju Das To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: Biju Das , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Douglas Anderson Subject: [PATCH v5 2/3] drm/bridge: Drop conditionals around of_node pointers Date: Wed, 30 Aug 2023 18:08:18 +0100 Message-Id: <20230830170819.309269-3-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230830170819.309269-1-biju.das.jz@bp.renesas.com> References: <20230830170819.309269-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 commit c9e358dfc4a8 ("driver-core: remove conditionals around devicetree pointers") supposed to remove conditionals around of_node pointer, but it missed out drm/bridge.h. So drop #if conditionals by adding struct device_node forward declaration. Suggested-by: Douglas Anderson Signed-off-by: Biju Das --- v5: * Split from patch#2 * Updated commit description * Added struct device_node forward declaration. --- include/drm/drm_bridge.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index c339fc85fd07..843736627f60 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -32,6 +32,8 @@ #include #include +struct device_node; + struct drm_bridge; struct drm_bridge_timings; struct drm_connector; @@ -716,10 +718,8 @@ struct drm_bridge { struct drm_encoder *encoder; /** @chain_node: used to form a bridge chain */ struct list_head chain_node; -#ifdef CONFIG_OF /** @of_node: device node pointer to the bridge */ struct device_node *of_node; -#endif /** @list: to keep track of all added bridges */ struct list_head list; /** -- 2.25.1