Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3987689rdb; Wed, 30 Aug 2023 11:52:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnQG0rwgeG0VUEo7sXLOOR7VTxdIf+LIvrPVtkE14hIe70a+4vPbtEIrEmFNGnZ9t4NpbW X-Received: by 2002:a17:90b:38cc:b0:263:f521:da3e with SMTP id nn12-20020a17090b38cc00b00263f521da3emr782217pjb.2.1693421579279; Wed, 30 Aug 2023 11:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693421579; cv=none; d=google.com; s=arc-20160816; b=lkVi+5g4q8hto4bo0pIgYleVMnxLKqTGXkoKJ+piCeGzyTf2fpf8DrDexhv/y9R178 SaYP4ZTZQfEbsYTIydehBN/jlin5906wRfToYZjLovWIl8DwMBgXeGXJJB0k0+fpMiHr 48AHzrGsN02Lz2BTjWngztAEZGnGYNCWyCNszLhN9FndQ/ICubnkKyGMCe8IjxtfcR0u S0k5X/wQP25Ps5RxscxqRwUP/aJHkCbAiocn7Ug0xbVMlLL/m0IGZ63a7RB5vlhvA+ju cslyF/zLmByP61fwVUu9oA6POgKAHmlpgzt9pcY6CkuXA8xWEeI0cKGLH8eWVNraazg+ x8DQ== 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=k7xdbA19s0TvtdaTtuw69ivY3fy5lVubhpbFklOqTgI=; fh=O2JMlOVvhYF5lSUNrJQdv/fHj2AFLem+Golnks7eYCE=; b=XsoMNx75TII4wBg8x5nkVKr8pf30B1RFpAfZM6kqYzrbMzt4f9FHnXEnNRLKihuACX S9isVJukqb00gqXXRMX+1WT5EWh6N2GYCdwDSojhB0KPAfymTW7ceGCzhjq7kquhESx6 4ggbiQV2GZ5qXlQoJzxgH/5nWOhDBSUMg0lIblWSzguevydW07tSxcbCpJf45y0d0RJH gOt9+2nfA36U6YWWO9++UIgw7qF0g7t2+N17rBMNLLKJRbMGRfG5tfspa5lF0Ta+a2NJ CDAY8JnO3ywupHlvBKXWvsqww3gNx6FW+nv8vtAtZJc/oDKSBE8slwaCRayMVT+BLGzv Riyw== 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 o13-20020a17090a744d00b00262cc36ea3esi2259353pjk.76.2023.08.30.11.52.28; Wed, 30 Aug 2023 11:52:59 -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 S239553AbjH3Skf (ORCPT + 99 others); Wed, 30 Aug 2023 14:40:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343821AbjH3RIr (ORCPT ); Wed, 30 Aug 2023 13:08:47 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E7A219A for ; Wed, 30 Aug 2023 10:08:43 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,214,1688396400"; d="scan'208";a="174495934" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 31 Aug 2023 02:08:43 +0900 Received: from localhost.localdomain (unknown [10.226.92.150]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id EF12C4000925; Thu, 31 Aug 2023 02:08:38 +0900 (JST) From: Biju Das To: Andrzej Hajda , Neil Armstrong , Robert Foss , David Airlie , Daniel Vetter Cc: Biju Das , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Douglas Anderson , Zhu Wang , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v5 3/3] drm/bridge/analogix/anx78xx: Drop conditionals around of_node pointers Date: Wed, 30 Aug 2023 18:08:19 +0100 Message-Id: <20230830170819.309269-4-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 Having conditional around the of_node pointers turns out to make driver code use ugly #ifdef and #if blocks. So drop the conditionals. Suggested-by: Douglas Anderson Signed-off-by: Biju Das --- v5: * Split from patch#2 --- drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c index 6169db73d2fe..ad8241758896 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c @@ -1231,9 +1231,7 @@ static int anx78xx_i2c_probe(struct i2c_client *client) mutex_init(&anx78xx->lock); -#if IS_ENABLED(CONFIG_OF) anx78xx->bridge.of_node = client->dev.of_node; -#endif anx78xx->client = client; i2c_set_clientdata(client, anx78xx); -- 2.25.1