From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 D1EB21990C7; Thu, 11 Dec 2025 16:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765471212; cv=none; b=k6B6chxcxTqi6oQn0mpVm/fJmCgPW9h4NFlgP+NTgeRicwBbb5b1jK4LDG8JHffdreoH9FVea29cOtAF7TCFC7NEeW8yKnj/PI1DzAyeNfaafvmM2iQxmdAJByS9sYYdvjXwhlS2ImR1D9FeUxr+zRhFtN0578No9Q7nwCFrGJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765471212; c=relaxed/simple; bh=R2ozZyameZR8yNERVvn+fDB8DQCf25gtzZUsLJMbSfk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VjnyrgBEKHElzjlRDcvGqo6uQjrUsa6M0b/uHHdynGMnha9upP71s8gXA5570cEGonzJFdNPkASgD8AySWrCSJCbQNFoDKsUkLnucIlrNP7RL2qTMjMZQsewUtF6xmHIt9vnR6D8trvsG5FBIDRi++XRSK7h7ZueiXm+mVXgGV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=bbJAY3x7; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="bbJAY3x7" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 7922E1A20D8; Thu, 11 Dec 2025 16:40:08 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 42BA960738; Thu, 11 Dec 2025 16:40:08 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9690C103C8E02; Thu, 11 Dec 2025 17:40:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1765471206; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=MS4b7veCYN3tYDfz/s9LxcL0AfieJWRhqqzkQWfhAqQ=; b=bbJAY3x7JC9zvbF72HehgjE2uBmtCiIl/RjavgKbbW4A63NrEtYVDKBIEx+EIQ5gVRn7iz 2xWoaBIJ/+p0ITIcyTdKNcH3vtOcPxFwB1L2RyGSFVPrCly7fis7UQB3KRbkjGOYIHQAaV zZS8qWp9hj1i76meKW5CsoIMGdDY9Ka9CQLAZQGmzPXy8LQ/TV6mRk7qJIUVomqw/HA0D9 a4kTYeFSbIGVhCjJzx54Oa9F1fEvQRw5TciCfQ9Fv+1sHap3nnQ6mjVCuLIB8YzYB0+rCc j+rxSFWsDCMO9knPeggDl2mRuD2qfyaLlIwxbWaKsonD4UYrGDVl0THIubMaiA== From: "Kory Maincent (TI.com)" Date: Thu, 11 Dec 2025 17:38:53 +0100 Subject: [PATCH v2 09/20] drm/tilcdc: Remove redundant #endif/#ifdef in debugfs code Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251211-feature_tilcdc-v2-9-f48bac3cd33e@bootlin.com> References: <20251211-feature_tilcdc-v2-0-f48bac3cd33e@bootlin.com> In-Reply-To: <20251211-feature_tilcdc-v2-0-f48bac3cd33e@bootlin.com> To: Jyri Sarha , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Bartosz Golaszewski , Tony Lindgren , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: Markus Schneider-Pargmann , Bajjuri Praneeth , Luca Ceresoli , Louis Chauvet , Thomas Petazzoni , Miguel Gazquez , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, "Kory Maincent (TI.com)" X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Remove the unnecessary #endif/#ifdef CONFIG_DEBUG_FS pair that splits the debugfs code section. This keeps all debugfs-related code within a single preprocessor conditional block, improving code readability. Reviewed-by: Luca Ceresoli Signed-off-by: Kory Maincent (TI.com) --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 9b3a0435a8d2d..d2aae731b72c6 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -438,9 +438,6 @@ static const struct { #undef REG }; -#endif - -#ifdef CONFIG_DEBUG_FS static int tilcdc_regs_show(struct seq_file *m, void *arg) { struct drm_info_node *node = (struct drm_info_node *) m->private; -- 2.43.0