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: 13812263 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 5E42DCCF9E4 for ; Wed, 25 Sep 2024 15:44:21 +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=d1u8mK/2ydwIZkWfaFw7ffuLwz tEaYkT1KZEgVyZw8JChQzj18BsA84Z/aIDggrWHucLAuxmdjqH/yxaKA0u3JllK3kb8QTQUjkhbsE ND4Id1WQYYm8HApI7Oja4RFHcgaRJLHnpzferXPsf0lfq10e9XZRLx/wH51MrVw428nX58LEj9rqF V+pNUl1DCH8bIIFMI5XNbVnMPkL8BUyGCSoVci8nAvcGpX9fBLbHhbzx5X/47i0yLSoX6No+aas2L AGHZ91CJCWV2WspChfNXQ0kjszAkNwCikyFVVbGR1etrbZhX9nbKoBPSjbhsWO7lZWujXWJBd96/T oY/95duw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUBg-00000005vTb-0vXd; Wed, 25 Sep 2024 15:44:20 +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-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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, From patchwork Wed Sep 25 15:42:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13812277 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 4A160CCF9E6 for ; Wed, 25 Sep 2024 15:45:31 +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=3dpOZ/ioTVT/5il6ou2oxhriDCIeCxURBP+dRZuK6nM=; b=SpBYFWnSVSC+LX8nycxbaLMJG/ mFaN/WbWpm+RZmdKj4tiujOjS3qVBTpnXjHvWkHvPNBVOCgDgp1sMcLL0NWHPP9LimiIvn/KC4m3P bVhpe1CF4UViEeeagi6ekeAxmqFQOJW/LoEMVaj/Wd6ebxXzjMd1PVTf9eZvB+5CayVZD6fC9/uUK RPspOYV+MViQT6K32w8HSP0y329tlZW8/wOUWTsiCpKpxx9V+5ZZAzElvPt6qZ/vqbYgIxh1htoR8 /rbIRKWdOi2gXS5BnTzbRS63035vG5SbBnG6X66mt92yfZWvrxT6/vA1ZBm/5pl15YoFCexj+BieE VJCTsLWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUCo-00000005vl7-0qr6; Wed, 25 Sep 2024 15:45:30 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stUAS-00000005usf-33aD; Wed, 25 Sep 2024 15:43:06 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5c5bca59416so4908122a12.1; Wed, 25 Sep 2024 08:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278983; x=1727883783; 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=3dpOZ/ioTVT/5il6ou2oxhriDCIeCxURBP+dRZuK6nM=; b=nMA/0NfMgnMDOIxDPassBHl1lE/tepLNeMfBxZk7s00t+xlVNXnfV5Agj667wvSFt3 5zo6lscsA6bbQ8MLE6W7MpS7rovDXeEyQlQta9fH8iAJJoEGSGpMk6kR2RBkbEbfM01E miUxqkCIQPy0PnRk2l/anQyER1B4pIPa6Bl7IwTo8zfgmz7Jrbk0aTt0pG/ZQJTQKR35 1g9j2p5sN5RFCfPFgF3g5SieR+0li9IlTdLG+WD8e7xLR0CqwBgdTluQ5YCzhUwFvt3c 9EscX2RVZybgF9uozfJrFd0QVfK9qWVdFYnpueUC2CMXVo8EAtbJzYpQR0gnmKiFFRlg Z+VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278983; x=1727883783; 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=3dpOZ/ioTVT/5il6ou2oxhriDCIeCxURBP+dRZuK6nM=; b=s9BcwcFTuxYgjh3+d2n4TlU1GGKNyeu3a45jQG9C24TNvI+Ch/6BSe+h79WqwCfUh+ 23IFufQ2csNAc1IYVu6rqXi2jLdSQdln9Y4h28QB+b+z1tudYtDQaRMtq1JKlNNzqnms B1/sjYL9FCHnIZil2brM9XPp/Fmqodda9BvFp5Ulz3hswa1djUikU+vjJAXLEv7lFN+g dyEhPoTI3NGj4VJPQHSbwJnWXe58L2kcMZe4OcVbX2JJXNojgg96qHHeHlhMZ0o5JbwZ IKBki5va+YpMHS1V9HYFQicj4QEmnz5VPQPGyIt6/zhqJ8FuJTU93Do0qARYyJe+ylNb 2z5g== X-Forwarded-Encrypted: i=1; AJvYcCVwCiTNUnrFHsg+S/uHIXaewTGOMMluZXTZi0VfP14rfLRIeOBBsjOM+GKtFx2a8w/JN9MN7oj2Cml2Y+zZfs4=@lists.infradead.org, AJvYcCVzVfswpWYG4IF2aZO+kFrNZm7Sd3wxmqggguWWOr5W2b/oq06W+9DhRdISZ9BM+Iv6N/dYkel8kCQsza31@lists.infradead.org, AJvYcCWFoGGUxVHAfND6knkC2fnvNW7RBlZ+XG0dnlA69UcwyNxpijMf5yDW+dZCInXDFyGVQuJlRD+8VL6HNLD7QM46EQ==@lists.infradead.org X-Gm-Message-State: AOJu0YxvPgHDy1MLI1gVfNwmI6UtIlB0eXSXmgDEcLI2ys04UWCqhcdz UX/RafNgzQdk1kwXng0wC2Q0shW2fIUn3Ae/b7qdxJ0NsY3jjgl4 X-Google-Smtp-Source: AGHT+IGKuNv7lE0u67hJ2OAhIVHl0bYdcTWRyaXR7IlGUKMo0Hm1JsihuqtBmJ8apswZAkFgkwRFnw== X-Received: by 2002:a17:907:1ca1:b0:a8c:78a5:8fc4 with SMTP id a640c23a62f3a-a93a036a36bmr248782566b.19.1727278982930; Wed, 25 Sep 2024 08:43:02 -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.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:02 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:41 +0200 Subject: [PATCH 2/6] drm/fsl-dcu: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240925-drm-const-regmap-v1-2-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=797; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=j5IVdz0beAjnl/rD8q67jV1CX8MClFwEzj++cGsQuD0=; b=4dMgS2dx5TyC8IP1MnInm+QJtBRuPpVnV4hoTf094WArm4pWhlF0Mhj9oO7SjZ12DXIAB3adY 5WH2uozmSnrD87oiirTQsU5nwiuxGKcfiISjPQfFww1GYXuUT2164v3 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_084304_807869_A56FFF55 X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org `fsl_tcon_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/fsl-dcu/fsl_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c index 9eb5abaf7d66..49bbd00c77ae 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c @@ -29,7 +29,7 @@ void fsl_tcon_bypass_enable(struct fsl_tcon *tcon) FSL_TCON_CTRL1_TCON_BYPASS); } -static struct regmap_config fsl_tcon_regmap_config = { +static const struct regmap_config fsl_tcon_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, From patchwork Wed Sep 25 15:42:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13812278 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 EBDECCCF9E6 for ; Wed, 25 Sep 2024 15:46:41 +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=by/nTcqi0aVjyTogWtw3F/RwUIoI+ZIDj6x5N4uN+wg=; b=iJRl7wzWimuBX7yWvY2YaohE4F 74m1/AVoi/2b4Dy+jdT51qopPDQHczcvahknSH5tgMvb3tivj6JaNjCfLOCqk+pqs/mdxCTaAnl2i Qymuf/uIS4WMdXsKFFFEVh5gYXzlxR6wMIIdFALWUkfVY71DymsO6XyWbHWHhCMlBzN/4heTTvXml u9Up9Y6mUIVuJjB29ftNFEknP8qJ5mGwGlbFcuBCnFWW3dhhlE2ue5zXXsHgTFL935hTfQ3tisnpq 221e5yuebuJCxALJ4QVv5s/8NudenBpbfK72HrT9sW9aLBG/S4ZfBF5Evvo59OJxHBM9Jzcq9px4A C6Rn2BLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUDw-00000005w9i-3pCW; Wed, 25 Sep 2024 15:46:40 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stUAW-00000005uvK-1uZq; Wed, 25 Sep 2024 15:43:10 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-378c16a4d3eso7457204f8f.1; Wed, 25 Sep 2024 08:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278986; x=1727883786; 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=by/nTcqi0aVjyTogWtw3F/RwUIoI+ZIDj6x5N4uN+wg=; b=J8E4Wd1DLDnJsWy6vWrj6FCgszFE2zLn5hP/U39tMHF94EE+XGKqPbhJOxX5JfqNqZ 12iCyZqdev78nFeaRkNngNAECCwP56GO1ZO6reQQ5Afr4c1s3AYTmpCv28bZ0BWJ8g18 yDTJ2FCWjYN3pR6ln1bgayGBy3TkBNgq3I40Eb3rGK0Qup9qYZY5gO6j0xyGQFtQfG1c pEWEH7A4+AxOkREDrf4k1prbpKV9gDLqDBMcWBPhVPr+n1OukSL1YGXXRoBzxQK39vYf yOYcOmYXG9qAc1mfjvCNJjF6iWWcqBhKx9dwxfhLuuH9ZfTn969l/I/ShXFEFZIcS2s3 +lAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278986; x=1727883786; 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=by/nTcqi0aVjyTogWtw3F/RwUIoI+ZIDj6x5N4uN+wg=; b=al4I0F/Br8lhVcwKe3ScTiRScJ8YQyZd7ZbGyl4/gNrC7USax3N6EyL1h9Tx4hxJ1z iqUGw1CjZ7Yljb1kblffQHU0hwbx85pwdeSMrkwj0DaEYxNXzbSmHVu5tEjuNs8PeGqt XF67WkBnGjXYvwChzCHdryC3UIg2J37A08K7k7mlR+7Y1NiSx+voM5/M8fIhsCTEHGWM 6BLOH0bPlfzHAC4NnsMordGVMCHI9/f+Uon62eF9LeG5G3GiKx1KY6yKDmH87H9q9TAo ozq3GRRyyyih8nv/eR2KOjm8tpMEmAc2s/y/iwXe9QTZO9nPwh7K1TZMfs4WgKBP7MG7 8t2Q== X-Forwarded-Encrypted: i=1; AJvYcCUPH+WSXvn76YS7E0J7rIdGLOp265J4f9vG4QIkv6+DlQFKbxbYEuwUu7/HmaHQJZ7bVeqp2fzvpyD//eUs@lists.infradead.org, AJvYcCUqcF/kCijWqXBHK6v4zc6tQtFo9PXlGWgkEdqJwB0Db6dloEV7jUTpImyxPWen9TgpOHnmkjDCpuAyrR3k6i7GQQ==@lists.infradead.org, AJvYcCVTS1O3/ftVxd4Bvt6IkZSVl8bx8odXZZli07oNU8p355t3cL9w0spB2AuVEZ5pJVx8X41TTVnwX34f3C9dPeQ=@lists.infradead.org X-Gm-Message-State: AOJu0YzQP7Ez6QdodVw3N5WPC+4Acln6mHnofT73eBcvVEQLfb3iWHjQ RPD54Y4ApVQNZxBEYTfmJVgw4PN0L0+CjiIulyHrc1F/A5zIZ+Lw X-Google-Smtp-Source: AGHT+IHJhvH9gplBfs4rlapKgfN74X4J8uVmh8ECXCHmFytouFZD6MReKNv2uyQvggR0QFC+8+ktEQ== X-Received: by 2002:adf:fbcc:0:b0:374:c44e:ef27 with SMTP id ffacd0b85a97d-37cc245dd30mr2854153f8f.8.1727278986389; Wed, 25 Sep 2024 08:43:06 -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.43.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:06 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:42 +0200 Subject: [PATCH 3/6] drm/mediatek: dp: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240925-drm-const-regmap-v1-3-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=784; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=Akh6/NmxNUGKnN3cTl+ADfEVv/jFRL48hClqI8/xUq8=; b=IjANioE+JCFwAjMkuWw7rvXfaWWxlLsFG0TPSDiWvDMe+XOLw4C6wtw/QweEtNdXjuNtLJZ0b bWnz5DBwP4dBi/Bl+1Ajyf6T97mjVaMth7Bkz45oPrpPhWhldTvE638 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_084308_676465_CDE7BF6F X-CRM114-Status: GOOD ( 12.18 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org `mtk_dp_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/mediatek/mtk_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c index d8796a904eca..f0f6f402994a 100644 --- a/drivers/gpu/drm/mediatek/mtk_dp.c +++ b/drivers/gpu/drm/mediatek/mtk_dp.c @@ -311,7 +311,7 @@ static const struct mtk_dp_efuse_fmt mt8195_dp_efuse_fmt[MTK_DP_CAL_MAX] = { }, }; -static struct regmap_config mtk_dp_regmap_config = { +static const struct regmap_config mtk_dp_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Sep 25 15:42:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13812279 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 4122DCCF9E6 for ; Wed, 25 Sep 2024 15:47:52 +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=xjGKEXG/YIg5uwQvEVpB+Au2CtHAgTgzoyA92gxhP0w=; b=jNhNPWr+hO66TbXyMTpXtc8MIi XkwdPChwj2xoZfqSholvHCv72ldct1c3dGWhQi8wmRbWH9MhE6WZhV6jUARR9EdvxgSAO1ZfMLy67 WrTQeHwlYfR+siFK4SdFFKQhmZys24TAxMg6t3D3X3wzWf9GW9yjJL/aZQI3dU2t7hnbs4nS49p7Y j3O2yb56ELtXu5Wx+mwJgSFMg8mnsT4Xivome/8OdzN2QNjDprLIkaSokopHqTITxPQNAFGl4OSry z0EHOaAs83lrBbVn4AKjIgtTdVe1dDQ/qfudnobIdEGw8u2bX6hmJGB8ZvTEUsukf5Jomq3tjkl8W mJ4erriQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUF5-00000005wVe-0dlk; Wed, 25 Sep 2024 15:47:51 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stUAZ-00000005uxh-2wEa; Wed, 25 Sep 2024 15:43:13 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a8d6d0fe021so1143083566b.1; Wed, 25 Sep 2024 08:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278989; x=1727883789; 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=xjGKEXG/YIg5uwQvEVpB+Au2CtHAgTgzoyA92gxhP0w=; b=TzK7F+f+2uvKKLdG9IE22Bw52BRpP+asi0ksK6iKyR6Soqqn2iEZiwcdVSsCL6ENke geea0Zrlz2/NOlggYcDipl+9xfthEFbZabz/G4D8foaJImIduZ8Y066EovE00UmI/Y0j bbZCMLAOBdp8h6D616XclV7EsAfK8DtxxR4GlyQpoDeUAYPACUcKFsEYqaLyDeSCStJi l+ZMLCc+etqe4B47XyqGTqskzV5FU4GUm7nyFKahLFSyAPlH9xTHlib8qpwjV7aHDyLJ kej0idIEshypTLlrhcI3vEJsPlMpnYhDCpA/jvv/k21BD2gfYC6DGBPaYy+gT2IHQvX2 rQOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278989; x=1727883789; 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=xjGKEXG/YIg5uwQvEVpB+Au2CtHAgTgzoyA92gxhP0w=; b=qKQmI76ErtASed/ZGVh+YYiJCd0RJAI++8hnbAfeFOeVUQM8b01WoDluVenUEEonr5 sV4rBvnPcETmvzsxdhweK3YwU/jEsWcCdlKBih8wC7y1didDGF4dyfwIsKmBHReUK+I7 s+tKjuHlfIxkvB+zHMK7W6kTxanDxyoTj9nq1RBuY0k+eojke91RrMZpIffRmCH3YIac 3Q3fUgSrnoNua1m3LCgHYgyuHDl5s8v+d6OdX4Oajrh4yLUXV/02tMNnvkKxrI9pkeuo 76uRJiPjBSQFiaRxU3f8lsIt0g/B83Ay8KVbjvHeNxZPMetxQaOkQ/riFixZ06m7Xe2P t/ag== X-Forwarded-Encrypted: i=1; AJvYcCUyEAszzldNNAJkcRpcUPY3sK66REit5uMqdTAdTCnG0izEeSLuS1HGfSakwNS4nQshb0hba5/m+W6AKR8nz/E=@lists.infradead.org, AJvYcCVxGH190jhXjtBVc6ESuhOjdRJ/0nfvdoT6ZeSioCbUr68XwGIYihEJogDlMslyPpKbdphlNstoTP0BD7x6@lists.infradead.org, AJvYcCXV4q1xLRZ1rRGy2dVsL0N4bk7gxZtctGslCyH86b6k0xOtY9DvNQ5p1p9Appq6brNtqSdij6mKjgHtyrsha5ADSA==@lists.infradead.org X-Gm-Message-State: AOJu0YxW16i+l50BZX1MWsAGGabeM8yFSk4LmzS/SdgQGlJNJkDa2o9/ yg+zhFbD3i0pSlfNq9go6tQTKCaYNg6kf56ygV9UX3t8VYK9m9sdJnpWovIi X-Google-Smtp-Source: AGHT+IGAQfbPRbsfTpM0aK4D6fvZG1rsiktVYt61uGomOVbKMmopBwPFSptvkm9mzsan2gR9cCCh1g== X-Received: by 2002:a17:907:36c1:b0:a86:7924:11bd with SMTP id a640c23a62f3a-a93a05fff3amr378300766b.41.1727278989391; Wed, 25 Sep 2024 08:43:09 -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.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:09 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:43 +0200 Subject: [PATCH 4/6] drm/meson: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240925-drm-const-regmap-v1-4-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=797; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=5LX2h6KUZ5if9Uj2vao0DwqWNuvKw18cUv/GkRmqevw=; b=i/26hRvR0+ATIZUcXlMm3e7auzpYVGdXGLS4TiyMLWDOmWVpEOZntFsYtA6UIGOAGHiXCzB2L ugbC+ZKd/ssD1Wn8wgdhVT2jaSlKi3OSJfOxsagoBy2dqeu80xbwgz/ 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_084311_838534_DD9BF8A5 X-CRM114-Status: GOOD ( 11.89 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org `meson_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/meson/meson_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c index 4bd0baa2a4f5..6c8677d1f562 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -126,7 +126,7 @@ static bool meson_vpu_has_available_connectors(struct device *dev) return false; } -static struct regmap_config meson_regmap_config = { +static const struct regmap_config meson_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Sep 25 15:42:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13812280 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 944B7CCF9E6 for ; Wed, 25 Sep 2024 15:49:02 +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=Tq2TptZvyceBLBBx7LtBZE3h+E/rY5vjthtbIWopdq8=; b=GoLEWtWv6dPzqb4Qlulpsrm8+S m2RIA9S3KKd0ceQRnI+HxdrlVdNFSUsAH6Z+9IkAuvHYuP4669tbKEZh70Ml3C5iWDQXKLtck6A/8 e8vW2EDSuY2iC9OAkkWkdYt/+m4i7XKqEOxvDT1a+CogqGy5G8Vwa8W8kOi2ldSc+rfzlGmQFRi9k PvWxsN0wR2YO/Md8UFSlAoE4VmKVtHKDO9thiGVSI2/moPjjL+tMiIVEn5lPbjKcqIKgHo0O0hAHi 6D2ZzfvqmWeHOXuf5gyu6biHuzruZWZGWfb/Qq/dwmrs7Jb/2O3W6PwUwUb4GUFUY6swPS9DuikMp AWb34vbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUGD-00000005wk1-27RC; Wed, 25 Sep 2024 15:49:01 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stUAc-00000005v0R-2H1W; Wed, 25 Sep 2024 15:43:15 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a7aa086b077so146666b.0; Wed, 25 Sep 2024 08:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278992; x=1727883792; 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=Tq2TptZvyceBLBBx7LtBZE3h+E/rY5vjthtbIWopdq8=; b=X+CVcMvPQQ1LSnUVlWCuUv2FlIgu2dp89FCMtoHs7ETegPq0egLcbuUFITMlrBbrfl sU/wY/5Cd0U9GLduIwAdfz2CicnDF9FrElvEr8VbhIdxZPZTH+C0ZNG62p85jGwSqit5 ppt/PO3KEBVyv0g+ZiFGf6Qy6vWRGE+Z0SVwrzZxb1W/bZNvp/Bm9E+OjnXACCCdEPhH XfaWrgbpAshLI0LSuks5BJis83Aq4VJMdJokuuEPe5VlFjQeB9GSl1YOB+wFxA57DQgv wUe2G1zYy9MT1bfy5liWTa+2XESqjRRHtBataryEdofvZsr4VL3AhhnLKOpSa0RRObz8 G4Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278992; x=1727883792; 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=Tq2TptZvyceBLBBx7LtBZE3h+E/rY5vjthtbIWopdq8=; b=VNby4ZEq8enwwmIxT9lbrTMcP4KFtzGapXh8/G1Uk+G1TXpDLuDDzNjZwLETlGpuIg Bsg3ooBHgilj2kPw0sNW++s95JPsjV4U49JHTWTESuF+6e8QkqZIpYxif4DkPELvVj5v GY83mg9PwypxBF18h815HXM8iE6OQjYV7W5KgmAqY/B7MGsw7fyNjMSNZT9A9qlm65Ip yTvMFS2DRulCxVAQdKEAL9kz5eabAf1csTEomAx3pQeJRV9298s5Tfba9adryDYgzktH YgxPK7Q3XZM7VHkbHIeZJ5U1+Nre5MGmk9E4Lp+IA5CHtPKbZ8ICL72q9D5hds7TA86O eqeg== X-Forwarded-Encrypted: i=1; AJvYcCWRkCU0T9doJucnU1nO7idfU2T8KOSfju0YrJaob3v819oYszMXw3xSI4KwfCsCl6UjGuFH1FzYfSvBXNDVSIyI0g==@lists.infradead.org, AJvYcCWzF0L6pSNtv7uIynRtXsZybmTVkKVDv4xnCLIMOKJKrHQ1ENbnBMiFyLxcCaVSt/YrhpDnmCNZs/RG+bqwqR4=@lists.infradead.org, AJvYcCX0jR7nKR/eb7Wo0ADJiocTD25GgKI+7lUSvgL+cB3fVEFnh2gSV98S3r6SYZ9Qe15AEtds8UQlnhZzaSWY@lists.infradead.org X-Gm-Message-State: AOJu0YyVcFaSRqnf/ioR8SVirEPjRQrz7tiTQwnr9d8iBt2Wq0OI/9Cm A9KClEDvgChfXS69PUNGv1HjkHJaeSLuW2YMIMb6W2wJJu2LuPAv X-Google-Smtp-Source: AGHT+IHHc8HHdLYal7Pmze3ybNwhfKc28k6q1+c6BRN4mTyPbMmAiS5NmCbp8C1cZy+2fjcsw/yvLA== X-Received: by 2002:a17:907:70b:b0:a8d:75ab:17aa with SMTP id a640c23a62f3a-a93a03c61cbmr314978966b.37.1727278992373; Wed, 25 Sep 2024 08:43:12 -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.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:11 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:44 +0200 Subject: [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus MIME-Version: 1.0 Message-Id: <20240925-drm-const-regmap-v1-5-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=929; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=w4RqhIFVBN4KBuZwGM8vHSEfTfAmOJ8kTf3Rh0OtbcY=; b=pFLApbC3MB4uKW0ZEVlNXM9AhpNeBXEs3My6pYnOwU646q8xtnwHyVxasmviBPw02fUL94CWi xgK5yWm/k67BakTjtq6lgKkPmmAhABqOvLOLqnuQGNEghVM3/8W6sHR 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_084314_639880_C7F1C649 X-CRM114-Status: GOOD ( 12.29 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org `ili9322_regmap_bus` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong --- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c index 4a6dcfd781e8..94b7dfef3b5e 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c @@ -318,7 +318,7 @@ static int ili9322_regmap_spi_read(void *context, const void *reg, return spi_write_then_read(spi, buf, 1, val, 1); } -static struct regmap_bus ili9322_regmap_bus = { +static const struct regmap_bus ili9322_regmap_bus = { .write = ili9322_regmap_spi_write, .read = ili9322_regmap_spi_read, .reg_format_endian_default = REGMAP_ENDIAN_BIG, From patchwork Wed Sep 25 15:42:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13812290 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 88747CCF9E4 for ; Wed, 25 Sep 2024 15:50:13 +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=Au0IxjjfAh+IrGj2ay54oiQohRBhlUlTthFZL3EgcLw=; b=0EuXm321rpR4DTnmKkQZDAhtyE lbnFKTWSkuqaf+V4M6zN0J9yUtmZEkA/4S2j9pKmU3z3f6WeXCALv2kNhzIF7qvnNHYC5U7DBGvgi iLa/nHi6u1Z53OPP9hnZIgJpyIpbqFpA++FkjTjBy9pb4OrxPCm7DRZe+/buihpYrzXyhxqktR+WG Jysl9jyozOvl4B4+EBgMbo0GFCyUimUpqtaRW8cEjLt3+/qEE32n3evIDM01IKxV4QoYC9VbNeuMg JizKvs7P3vay0xIwlQOBjBKSOc3Nbr/8Sqv17kXwMT1NiZXWt8dpbAen5lPNmt5j9uS5YQzGAw74K 5aesURLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stUHM-00000005x0J-15Z9; Wed, 25 Sep 2024 15:50:12 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stUAg-00000005v34-0NCT; Wed, 25 Sep 2024 15:43:20 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2f75c0b78fbso70223461fa.1; Wed, 25 Sep 2024 08:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278996; x=1727883796; 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=Au0IxjjfAh+IrGj2ay54oiQohRBhlUlTthFZL3EgcLw=; b=jbkAR8d+ee/QuibbBWSnAUhEgwA5l7C1iaWugOAWryG03N5loMTvKvp5wHz8V07RJH d52W052a5KDS+Hp7rRE//Zun9Hcf9sAAFqfDrqlb7y4K7Y8MqgpG/jycHGcz/x6udkJj FlIfKIV/qFKyCeGu2/46zzMRBrdyG6WzMsqoQLTPyuaufyvkLGJqyjI2fNfcxm7tarsA c8aznyBgWduUDuBsmg0tA/tneMHhUSL1zxPpduWMdB4p1fylPqoCy3lFdqSHuXajk7Ax y8xeqs3Zsy6rOr6kYwgclZSVuS9ezOgO8vH1C+Fhm8NQsZuOL718wn+JNf6mzN9rFsRJ J6OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278996; x=1727883796; 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=Au0IxjjfAh+IrGj2ay54oiQohRBhlUlTthFZL3EgcLw=; b=Su+MIxvMTpo3XYySJ4OjtNwEF81/AADNC3b1mZIISRapR84ipC2Mm5Kuj8MxYZxfdU YjffUbzK1tkec2GEU+UPBG0zCVWQanOAD6qu/Nodaf2/pabkFA643GRU2PVFIPGEE+pw TN6frDZgrZLvbSMTb/kRZvpaNXWonnoPyGi4iT+2OY59fweBoddtP1FwnV4gsnSdVwo+ OwF4PTtMFTPFDjlXwffEWsCYHD4XJyX0h0Z+vPIPd55/ttw7Oeuhfp6MhEjQZICueDtv kEnUXJ0LqLQarmRqkNJ+2pH/0y9+Sh1AwRexak/TEH1yx+fV7bcBreDxkrNa5ivkEqKD QMWQ== X-Forwarded-Encrypted: i=1; AJvYcCVbEkTJBwacEAh0MBMcd0khAOwcIlihaDI1pEcoxHAgZtpEan6RD0jaVPhbaoIPXSfa82gOYza8KPE9H6Yi@lists.infradead.org, AJvYcCW3xk7zhXmgnAvlT0jch+5Fay7tLYzx8gonTCtIkSk0tbOMPpZwknjip88GJRSxBpWOZkNSkpuKRypKXQTEQ98=@lists.infradead.org, AJvYcCWPAHP1HIrP6oTGKoT0G7isfLq8sMK0mbeMTbgqx5f7JDlAp9bjYxRqM1I0egjOnFVBZydBoY8Z/19yCOIxV75JEA==@lists.infradead.org X-Gm-Message-State: AOJu0YyylohOnG/FtuXOJMbeOi3HQjjQpF6R4kjcKS/F4Iyc4oJWnjcn F3ob2YduWXiAt8M51o6NwICRDvpvMOIeFcIGVe75l2osptvsR5bZnzXLfy1o X-Google-Smtp-Source: AGHT+IFCWYzAdpSpjVAnQ4BizrMtQKpfIddRrw3ocd29W6scUx1jmeEcp42KXRhfT3R4QSqzAie8lw== X-Received: by 2002:a05:6512:3b92:b0:535:6a83:86f9 with SMTP id 2adb3069b0e04-538804c7028mr1863446e87.60.1727278995522; Wed, 25 Sep 2024 08:43:15 -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.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:15 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:45 +0200 Subject: [PATCH 6/6] drm/sprd: Constify struct regmap_bus MIME-Version: 1.0 Message-Id: <20240925-drm-const-regmap-v1-6-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=759; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=/dTvDzTxw0elKvCO5X9KGGNdTLXj/tisL/crl9vaUr8=; b=373HrRNVvIqo811qw5A1e2uUKIh5z7ThMB7W+u2ouyWfcNGoTkirPUv/a3k0By1E45+/+k9nu s2jBMDDp7dTCURqw9nlmEGjS03N0BqfD1AngIvdPXCsiLl6HtBQDhfN 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_084318_298329_EFA523CF X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org `regmap_txt_io` 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/sprd/sprd_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sprd/sprd_dsi.c b/drivers/gpu/drm/sprd/sprd_dsi.c index 0b69c140eab3..44a7a579660f 100644 --- a/drivers/gpu/drm/sprd/sprd_dsi.c +++ b/drivers/gpu/drm/sprd/sprd_dsi.c @@ -209,7 +209,7 @@ static int regmap_tst_io_read(void *context, u32 reg, u32 *val) return 0; } -static struct regmap_bus regmap_tst_io = { +static const struct regmap_bus regmap_tst_io = { .reg_write = regmap_tst_io_write, .reg_read = regmap_tst_io_read, };