Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp739144lqa; Sun, 28 Apr 2024 01:53:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEY+FvZW+5M5ghIxCPH5nsICuBPbG3Xp/++N3i/2ETip5ySYCUuYK6vtv5HrEGOOwlFw6RvEvCxYmMVFzFEgBB3S2QsYUGpV1RHGCODg== X-Google-Smtp-Source: AGHT+IGc0QuzEuS4SU8Bwl1T4/4vBvBsRp5CCjSYj+SqDADF6GFDBc7YpBZmbKBJ2y5NoqNaR4Y8 X-Received: by 2002:a17:90a:17e2:b0:2a5:575:c58d with SMTP id q89-20020a17090a17e200b002a50575c58dmr5576814pja.16.1714294398649; Sun, 28 Apr 2024 01:53:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714294398; cv=pass; d=google.com; s=arc-20160816; b=ZjFT0jMHIRV1mUUy5sXAEYoYMAkg40Esdz95SmBe+MylZr+8pv6s/4mrHbMF6VcJKF GyVv/J1vxlpMsw64q/OKbbJd3+fqxjI4dSWtriDtYo+tiY4ms0pPGFP0ScwuMM3z0Qp4 BQWnBnoSc+L3mdW27Yog2Vx5ntVWaHF9y6TIqvY2XLDgA9d9oRv47z/tJD4i0Lep453b qeNFFiGpJRT8wPGnP9eXF0OvDEyWv85cbe8nYG+Q19r6DPtJDdghGSwPGFIAOOASGMbl ffDHUImDYkn8SFb9ysatCbwitNgTzvfl6QTewUNlyUs1VhnPlelLgYREcJpgpRlD1VQL Wx5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=+4Ebqd5PXcDeEG5hgpde8rWqDaSRg1lE+TFvlObUJo4=; fh=ZRfM22CoVNlGB1Ih6HJhWX3o2NvlQlZV5wHcQE1uYyY=; b=Uotp46E5zlSr0y1V1SfAmtbdJHUiC0qSMTyhOANlP3oCwkGM2QX6jse4/y+h/9DJFQ eBjylzLrYGYPlY1kQvaIuzaSuFmrP8AD6k7B+D3rixThs0MYXElp2tv6s/uAe5M6o7i5 WaLnfbK4A1g146CeNt+MCbBKKkoUOzNwzO45Es54gmXQXJcP2OaVmampfmtIpS2bSkwm cAnr7Zl3vwBS+2OGBZeAqMt6e+k8WkCL4jaAh2MoXLahtgc+a8hPy/QMVEvRwayRrTQL M1QAFlGif/ZMw6/m18xtC4WB04fdrtzu8oNLrAGuJ3ltpsLxoVDixitcYKjPPIW32hU6 he9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=bosc.ac.cn); spf=pass (google.com: domain of linux-kernel+bounces-161332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161332-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h1-20020a17090ac38100b002a4e341cdf9si18077120pjt.175.2024.04.28.01.53.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 01:53:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=bosc.ac.cn); spf=pass (google.com: domain of linux-kernel+bounces-161332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161332-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4875C281BD8 for ; Sun, 28 Apr 2024 08:53:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2610454BC3; Sun, 28 Apr 2024 08:53:01 +0000 (UTC) Received: from zg8tmja2lje4os4yms4ymjma.icoremail.net (zg8tmja2lje4os4yms4ymjma.icoremail.net [206.189.21.223]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 509031E489 for ; Sun, 28 Apr 2024 08:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=206.189.21.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714294380; cv=none; b=M4IWov+IHolwW5rem4UhZarSyqaCeswqmufplDl6tcpdbBpllFs9NvQPswpPJjVOpNHaLAJe5py6NLPtjk1T/VZOgZOBEkEW7gwy+Desput81uPx44AfmwSi0pE23hyImLMuqXv6btXrCV34brihVxUXK1mcml/I6WQCa5WODQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714294380; c=relaxed/simple; bh=lFJbKYQ8UlgFc6npLR2fpKlINt+qFS16Usw9fu1WzYk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gtFsPm3oRqoK18jGHFj8G5KyeLW+TdE6HjFzYqx8cwwU9J1pASdl73qy12kGWqtDQs98Huhf8FFGKljpAs7d/Tr+kRtMcuVv6Kxbtvot14gPj8DGW6Z2o1lBJQ8kKwvmU6yjCaLsLr4ok0lZNf2dTVRifmUR1lPmfkOUFIp5ZxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bosc.ac.cn; spf=pass smtp.mailfrom=bosc.ac.cn; arc=none smtp.client-ip=206.189.21.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bosc.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bosc.ac.cn Received: from [172.38.8.164] (unknown [219.141.235.82]) by mail (Coremail) with SMTP id AQAAfwB3Kdo9Di5myTwYAA--.43549S3; Sun, 28 Apr 2024 16:52:14 +0800 (CST) Message-ID: Date: Sun, 28 Apr 2024 16:52:13 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: drm/debugfs: Drop conditionals around of_node pointers To: Sui Jingfeng , Maarten Lankhorst Cc: Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Douglas Anderson , Laurent Pinchart , Biju Das , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240321222258.1440130-1-sui.jingfeng@linux.dev> Content-Language: en-US, en-AU From: Sui Jingfeng Organization: bosc In-Reply-To: <20240321222258.1440130-1-sui.jingfeng@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAfwB3Kdo9Di5myTwYAA--.43549S3 X-Coremail-Antispam: 1UD129KBjvdXoW7XrWkuryUurWDJw1xZw1UZFb_yoWkCFgEka s7urZruwnruryvvFW2ya13ZrZ0van8uF4xXwnag39xArn8Aw17X3s7urW5J3WrXF1UGFyD A34xZF1kAFn29jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbIxYjsxI4VWkKwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_JrC_JFWl1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8JVWxJw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l c2xSY4AK67AK6r43MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I 0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWU tVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcV CY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAF wI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa 7IU5Kg4DUUUUU== X-CM-SenderInfo: xvxlyxpqjiv03j6e02nfoduhdfq/ ping 在 2024/3/22 06:22, Sui Jingfeng 写道: > Having conditional around the of_node pointer of the drm_bridge structure > turns out to make driver code use ugly #ifdef blocks. Drop the conditionals > to simplify debugfs. > > Fixes: d8dfccde2709 ("drm/bridge: Drop conditionals around of_node pointers") > Signed-off-by: Sui Jingfeng > --- > 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"); -- Best regards Sui Jingfeng