Message ID | 20240925-drm-const-regmap-v1-1-e609d502401b@gmail.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Neil Armstrong |
Headers | show
Return-Path: <linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org> 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 97710CCF9E6 for <linux-amlogic@archiver.kernel.org>; Wed, 25 Sep 2024 15:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=VHahNotMKzrMI3aenV57hf6Ci6BURg2mjDngrI4HcYE=; b=PzOyUcWMmdLxVH STgg6ER/ysQ7en01NpfhJ5C9V3MBFUtJsqMJzg1erf/DqSjWHKhSiyB15O+5DLM2999mSOLDp7iIn VPUd4+Bdx6LIADM2Eew4/aRtnFgs3K0zXwzShw/8CfK/OsYuyjM6zwRElEQpe4tKrjUlUeqegNuYb GCDLz287ZIBl0MN7+N4/ZqdFwNuOlJ77kEjS3lq26/lniQcMBQ79tDkvOUEf3uWIXCse1ADXLMOsR IMsXrTNnPHKwVPqV58KOWFaPs9U0Quedzq4qDo2x0NcA4FhjWYxb6clVwH1KfIvOQ8PCzz1gQLT2A CeuvppRV7mu9oEENTfTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUBf-00000005vTI-3NAq; Wed, 25 Sep 2024 15:44:19 +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 <javier.carrasco.cruz@gmail.com> 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 <jagan@amarulasolutions.com>, Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <rfoss@kernel.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Jonas Karlman <jonas@kwiboo.se>, Jernej Skrabec <jernej.skrabec@gmail.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>, Stefan Agner <stefan@agner.ch>, Alison Wang <alison.wang@nxp.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com>, Jessica Zhang <quic_jesszhan@quicinc.com>, Orson Zhai <orsonzhai@gmail.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Chunyan Zhang <zhang.lyra@gmail.com> 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 <javier.carrasco.cruz@gmail.com> 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-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org |
Series |
drm: constify read-only regmap structs
|
expand
|
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,
`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 <javier.carrasco.cruz@gmail.com> --- drivers/gpu/drm/bridge/ti-dlpc3433.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)