From patchwork Wed Sep 25 15:42:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13812285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AF53CCF9E4 for ; Wed, 25 Sep 2024 15:45:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XWbh6GTwX/Nur9rLh4dOxd0uol8CDj0VjkbwHekxRn0=; b=H82Tja+/sITJGJxEn7Ehp7sTHv d48rrD2+t+lnwPxteuXRIEIxmaFFACome4r79fl29VTupUlEPBj3BwWSOsq7KklSpq0GmQjHwGrKt Grff4MCyFrnD6gQzJ0U5M9eD5AxEyeCv1KnWSOrK/yvAS6dnUworshkRNRZEN2pvqakWA2aq56wpi UyGkTJNewlpILAaODxxzJ3VVcakqpRqvGrbV4AVgSspgMfDLqqDnVZePurlWigPj9lQLpc3p9HtxZ xLXsGldv/jCMIP6bnEBjAQ7ydyw68mISdhMKJ1MhQOof4jICh4dYR60ufDDr59sa8tQ7jjjiHXRoz tc4ZAAcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUCn-00000005vkl-1I1p; Wed, 25 Sep 2024 15:45:29 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stUAQ-00000005ur9-0JCx; Wed, 25 Sep 2024 15:43:03 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a8b155b5e9eso1013235966b.1; Wed, 25 Sep 2024 08:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278980; x=1727883780; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=XWbh6GTwX/Nur9rLh4dOxd0uol8CDj0VjkbwHekxRn0=; b=XXFf59KyUUGuI8byJo2roEe/lvkpmxIdsCDhtxJxaaQ2TarMjbLTIAw7CsL6oi1mUD aTfKpk9uYX26Y7Ec+Swnt8pksmv62p1w1afnUDNyhJVzepUo0hLbmvsYtQv7VZN5Hrq6 J2tXNKIs3UOk6L5En5k8BwAIYDqI3b7fK/mHXFElgQk9LMrAXtJJP40UIfxEgvHSg8+U k6J9n/LoAs2IZnm++9A8WremKdNgHQUZlKC0B664wwmWSFkjSmFDY86+jh2lyM9ua6gR vaLL1Psji/N61uPOulAUgkULQAQhmDzSl0/Gilad9VM8DVocpx3TcbLk3qMYz3amcMbM fCiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278980; x=1727883780; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XWbh6GTwX/Nur9rLh4dOxd0uol8CDj0VjkbwHekxRn0=; b=dgxhQib8BniSXKBod7eS5QFV8zSefMXB82rSRCifcLzusTPBUE1rTBZqs70POxXfMa GapV8Xf7l8mTVWm03XrR5M09DtZRviEATRB+OVTqaiaui7MAJzuvQPwe9rFqT3PoyVPI xey0HwwWn7hma8EmJa/QZEBK+Xxxm7+VJOOX7pbGAKScmShV7HpI3cXz7QqyHrPrbkFA G1PdfJLEa2vRSJCbpUE1ijYcsFLYjJBIxio+u/AGMZ+458POBfCiDTykMfNia4Pfr1Uj f0EuMZlTOLdLF8A5WWpPzn8Or+1YKztzHk8Lo/l+5LuxK8DYMNhDN0BmClKH32919wDI pLKA== X-Forwarded-Encrypted: i=1; AJvYcCWC3IZpuO5Hn2jca9l8AiR4kK6nuqEzVdVhpa/GSxoNRkhdtN+r9m/oLRCKqbvKuHPfBiena+jCycxH0Ew2LBIBYg==@lists.infradead.org, AJvYcCWCHtHZYrVhl5+h8iFlm0zIHdOfG0hghYy5fjgd6DhWm84Xt2aYsqnd1gG1jbAFzXQqtGRptqMHtZxWkh0U+D4=@lists.infradead.org, AJvYcCXMYBrAli8Coytji27kKlYS+nCaheGD7hy4dBMG09Moqzoitc7pwYj5UTFZGgD8w9l5gwrsn9UdK0Ikm4tz@lists.infradead.org X-Gm-Message-State: AOJu0YyBtabVIe+NQMdMcUW7xeNlKf3tDfRJ2iQK/box99CggK3OZT9m paIa5SjMLc3NFUN/4B0ddWrJz72DS6o/TedJk5gt429AmflN71BT X-Google-Smtp-Source: AGHT+IFOGCZlm7hxWZEDil/VHBukKjDMSy3xe8mZT1I0E9J+s+NIqup/Xj8x8pzeHvNlSTbRH1jJ6w== X-Received: by 2002:a17:907:742:b0:a8b:6ee7:ba28 with SMTP id a640c23a62f3a-a93a0341396mr287138266b.1.1727278979968; Wed, 25 Sep 2024 08:42:59 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9392f3420esm221803466b.40.2024.09.25.08.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:42:59 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:40 +0200 Subject: [PATCH 1/6] drm/bridge: dpc3433: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240925-drm-const-regmap-v1-1-e609d502401b@gmail.com> References: <20240925-drm-const-regmap-v1-0-e609d502401b@gmail.com> In-Reply-To: <20240925-drm-const-regmap-v1-0-e609d502401b@gmail.com> To: Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Stefan Agner , Alison Wang , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jessica Zhang , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1727278971; l=841; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=7sxYHbFVUy82VPtxBTafFtyJ4V/px/ZO0hSTzcua6/s=; b=a1oRJ13BKg+sndE24RLHGwgqk3PJapTy3e06yyGNw7SE3ROWSvYabdohlrCbkn9bjP2TpGvpw SI97afI/Lq2DamjammUDr/YLmCMfIJxNhTzop91yyMyj7KjM74Q+KXg X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_084302_156461_21AAD955 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org `dlpc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/gpu/drm/bridge/ti-dlpc3433.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-dlpc3433.c b/drivers/gpu/drm/bridge/ti-dlpc3433.c index 6b559e071301..a0a1b5dd794e 100644 --- a/drivers/gpu/drm/bridge/ti-dlpc3433.c +++ b/drivers/gpu/drm/bridge/ti-dlpc3433.c @@ -94,7 +94,7 @@ static const struct regmap_access_table dlpc_volatile_table = { .n_yes_ranges = ARRAY_SIZE(dlpc_volatile_ranges), }; -static struct regmap_config dlpc_regmap_config = { +static const struct regmap_config dlpc_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = WR_DSI_PORT_EN,