Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp263544lqm; Tue, 30 Apr 2024 22:13:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyP+CFZF/aAWwpWMZrYaOeTOYVdb+8UxNRhaYSka4T77tB8p/5w9gVLXxDIU4aShSLivC1jXvHuDeR+j+1z7ldJiiC9bwXKqB1wVvSSA== X-Google-Smtp-Source: AGHT+IGVvTciId1zSjEVYllMF055jbyDxaUiMiEnll8jfpNkyLHo9Osq0eta533w9fpsjgMfquiI X-Received: by 2002:a54:4694:0:b0:3c8:4960:cc30 with SMTP id k20-20020a544694000000b003c84960cc30mr1737272oic.29.1714540429764; Tue, 30 Apr 2024 22:13:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714540429; cv=pass; d=google.com; s=arc-20160816; b=LvZjdL/j94yGYAX6Sy44AEWN7tLkmVTyAseYm1VyKUm9zqhDQIigF2fE7zMrUyIDdQ ij2a9vGzBcFxcmc7/HiGPOEwVI1Tq5WBHdZD50s9zGsmhc2ntO1dEPG++u43ecnDQHAU kxajCxdBreknv5uJ8qHXkuOCp8FezqEj063Cs7r+ILAo/YkF1m4PHRkU6hWB2N9XpKsG M0fsVPJp3nigOwAOWUfRfVyi0dHRGfYL7d6erXhWjtIjWWTgPFSbYFUCPMDllC40qsWS gNdq8OVsZUhJ/JfRL9OcF7QfHZAp5HmuQ2sCvw5/jJ4P8Bfo8+iJjAqWGHuF72mhd5qL zSOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=05WNzqmqLv1QKE4Y/P8AHkj3HrmEQHj1mc/aw/CiANo=; fh=DZWZ1D/lHXo9XmCsHIdTVpnxN01sDAYprmGTWF3lAX8=; b=makMHTX1SavCy7uL7EH2jfGKJX+XKX2taeO+6R7Yq/7c5Y9XlSR8idI5ZL0hGtFSx7 f8NEEeG6L/dNUhcSa36GqJh6FOkuAjQqCFeO/smecYm8FHY6UuOZFZDg9Zc4lwQTV46K kCI838+nDrqcNxj4i6XWDbshyeH1/k+2IdtMt7cjRwYf9/aX0lq/eZrPnF/EcmuuJ6mX dJnGmGiSGXR0M9G4YtH9Zv+JAAMpASm5s0RgzyU4tbf0i/FN4gs7wZrtOSLUTRkeEpQ/ igtwj7jq4glUywvk1XG0dqh042EmB51NqWIaOXInfUYqMEa7KR0wi3T4uiZ3/w2PB2YV ufKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=P4LlReB3; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-164937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q4-20020a056a00088400b006e7356c25d4si21006512pfj.183.2024.04.30.22.13.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 22:13:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=P4LlReB3; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-164937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 13E53B22022 for ; Wed, 1 May 2024 05:13:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F209433D5; Wed, 1 May 2024 05:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="P4LlReB3" Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C46C91D68F for ; Wed, 1 May 2024 05:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540420; cv=none; b=fpl0I2pwiscKU4JQoJs0YO8DI3bE3IMq7TS2xzMol6QD30U1RGsQQqZJTglkTJqV1aSPbIqN+iaUVPLwq9K3hQBJIZqEPRjW67D3UYj+rBJhX8b1L+g6LLhfU67rDLPBgiCIZR8DpJhS49DGQsbOyxY4X0eW9dqIZw1TvG4Pc+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540420; c=relaxed/simple; bh=IyHptUUohnW3r093RcnjlP6XPm56w94Pwp2frUOijAI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=c23mKpyCiyxzyzl+w+5zmJdkcMH40vuMMSjjwv4khUsDY71D2XL0DLwhdjSLyzBacmiBDxNksjANSeDEoPcKXY82PGgQXYUVE9bYGdndOL7jkZIbEcHCKFjx9zQNI1ahy74ugGRz/m5+DZLkicLRCVNrkHjmc/DwVq5e4DXyFfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=P4LlReB3; arc=none smtp.client-ip=95.215.58.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714540415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=05WNzqmqLv1QKE4Y/P8AHkj3HrmEQHj1mc/aw/CiANo=; b=P4LlReB3hNgroqsQTv26mFyfidd8iGuH/1AmYn2a2a+9/AAjaNSHIv/1eduVEhv/qT0Mu1 CmWzSBBOMzrQUlXyqtVDQ5eRxj2xmPevcqmh4supYL87m1NFulRvWkIt6O04idgr4BDPuV o+itTgVj/XYKtPLs0TlKOIi3TnzUFOU= From: Sui Jingfeng To: Doug Anderson Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sui Jingfeng , Dmitry Baryshkov Subject: [PATCH v2] drm/debugfs: Drop conditionals around of_node pointers Date: Wed, 1 May 2024 13:13:23 +0800 Message-Id: <20240501051323.805076-1-sui.jingfeng@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Having conditional around the of_node pointer of the drm_bridge structure is not necessary anymore, since drm_bridge structure always has the of_node member since the commit d8dfccde2709 ("drm/bridge: Drop conditionals around of_node pointers"). So drop the conditional, please also note that this patch is following the convention used by driver core, see commit c9e358dfc4a8 ("driver-core: remove conditionals around devicetree pointers"). Reviewed-by: Dmitry Baryshkov Signed-off-by: Sui Jingfeng --- v2: Update commit message --- drivers/gpu/drm/drm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 08fcefd804bc..28a471fe4bc8 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c @@ -597,10 +597,10 @@ static int bridges_show(struct seq_file *m, void *data) drm_printf(&p, "\ttype: [%d] %s\n", bridge->type, drm_get_connector_type_name(bridge->type)); -#ifdef CONFIG_OF + if (bridge->of_node) drm_printf(&p, "\tOF: %pOFfc\n", bridge->of_node); -#endif + drm_printf(&p, "\tops: [0x%x]", bridge->ops); if (bridge->ops & DRM_BRIDGE_OP_DETECT) drm_puts(&p, " detect"); -- 2.34.1