From patchwork Sun Sep 8 14:21:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13795510 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 9BC78E6FE49 for ; Sun, 8 Sep 2024 14:24:00 +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=H1ZNL7rsk3o06D2/bK5l+Z74dW3KYP7ykpJiD2NO+hQ=; b=cqQAbgD39CcUKQ xVA1sWOzepR58ghlg5v4u3sLVcwaVVYJq2/hvl+0olXku7FEtnGZULDDo0oyPtJpH02G27ON48wEF n4Y+rtdl202+cggLxNPbQLOWXgxzjJCTM7QnTJkOr71xfgQpfhQ1JxDiUBNr6IvLnZwuulpqpJjpV eiI1z6MfIRN/P8kRjT9j1023TQwRoIbazza8x2DfXzozhsklR1+jTPeGXAGR1WrOXkL3sDLGtZyyv jJ0ajIVF8DjFIIs8VhVb/Lm39IwTam1krM5LFhk7fC+wBhC06FNC5sMMo7LkU2hQN/bAi2NIkXsjm D642vm5ZDBCkR+x8cyWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIpX-0000000GwOb-1zf9; Sun, 08 Sep 2024 14:23:55 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snInW-0000000Gvqe-22vI for linux-amlogic@lists.infradead.org; Sun, 08 Sep 2024 14:21:53 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42ca802545aso2815755e9.2 for ; Sun, 08 Sep 2024 07:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725805309; x=1726410109; 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=DmNCAE4Q1YMX3Tcl8gMK7BYQKsWpwsEcc2NsJh2xrh4=; b=fEvu1kO6l5okzH3/Uihn7iguiU8Ux+k/6RwrHrMgacvLX932mawBHS/cTe85YNMe1G JoOiHwEfTuCxmbAfp5lMschcPX4HBKXZdN4E/WjaitFOujxqNh2b074Y+ce3gLVH7kPA VItgU/kgdpXMJdDhyFMNwMlVBsQjEiUjUswihgHLqEElXS2K6+B4r+TOqx0yw9FIzNbn tW6j4cg9IOoAdI0YsPFtT2DY65pt41akOOHy0JRXIH4WyaltTirrAZQITcSPdUxJlwEz ecLf4CIJCulQRUeDKYHhyWRfjze0SJDJ9+e3inAkRnsiLOHS39HxDg7X+WWPg0/eRKVh yqng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725805309; x=1726410109; 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=DmNCAE4Q1YMX3Tcl8gMK7BYQKsWpwsEcc2NsJh2xrh4=; b=QE015BM5lYZzXQq7d6tewXugPvc2hj4m7qvb1mBIgGmZAt4cbQuL0BPW5yptDVqgQj XSvATyMzruSKui8yUXymFxJoZLCkoI7QUb2ZQa80EafWLl4n22cFelxC+a4vGaEVojKD sXV8YtZE872hGg8/FPGuABDbT4t7C5OXkm+HUGxUTzxDPJHRCAnpzJTgYL3AIQs9dL1j JgIJ2V27MxxfPY7n69szVWT8JvFAGinHlHNQHuK6Q0ac6IbwuKfp6F0Om9sN9e24gBLt WdOq/qnjDos6gfTmtmpb1e59SOdnRq7ZeARNuokwqxTGpNaHKvJrqSEBrXlPEiQmVVRO WFmw== X-Forwarded-Encrypted: i=1; AJvYcCXt2FQRcqufJ9R+LCSsdYPoc52/yRsE+KVvWpoLciQYSOZZ1Mu1ne0p2WHaf1o85D7SE60OTMofUB4R7WA7@lists.infradead.org X-Gm-Message-State: AOJu0Yxjj+zaAhHj/d8Zzl0lNwyKZox/4Juu42M1TpIKZmkRMjvV9yvb hAs+64jl+6Y6sVXZ3nDQDeXM31tJhk2wgIVwSr2vSQ7j4yCJId2Av/7AS+lbaEE= X-Google-Smtp-Source: AGHT+IEfPYmeZxoWXAcFQnFIynwYI3IhFwp318lmX0rGJhOu4zCB8JiThVgRlAkTPUtEGTM66TbBWA== X-Received: by 2002:a5d:5985:0:b0:374:c4c9:d501 with SMTP id ffacd0b85a97d-3788969f8famr2540273f8f.10.1725805308342; Sun, 08 Sep 2024 07:21:48 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895675bc9sm3465092f8f.56.2024.09.08.07.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 07:21:47 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 08 Sep 2024 16:21:31 +0200 Subject: [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits MIME-Version: 1.0 Message-Id: <20240908-regmap-config-const-v1-1-28f349004811@linaro.org> References: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> In-Reply-To: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Stefan Agner , Alison Wang , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Jagan Teki , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1186; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=xt0kZ7eoXJhJeMpnCj+RSo+GXDsYwuHZwovewC7CyRM=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBm3bLzifbiOLGTfi1rakImHboSKV6MijiY+nxNL 64lIGN8Vw2JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZt2y8wAKCRDBN2bmhouD 1z1VD/wOZ9MQKyB3Sw1CKjUwzx//foRb4DryywNPfnPq4l8A3dIm616OmVccvSkkz53RxzHsiSo Dw7eEnEx2HVoW7kyWifS/sxsqjS+ZJNu6o96aJZNPknaYTjCGqvsm31f+pa4nEJrbh5K6FiC34M jDlUbCSrH2rdiUg9gB8kqAX+93smcGE7+Z10Q8e+v7U3AOr+RRMuFrcAjN+fbvV85gIg4iU+3y/ k+l+eWOMcpnaAdQPcSnMx/vgGKSJuJHpQO91fE04UmJyzAwR5F8QgYSVcKByRExvYTirjmiDD4k 13HJUKlryiBKlnP/3dtY3lA1eJaLwhaBnMLGwWxL4msNZF3martYB6dBVDA5Q6erhi9JEytv3Ub Ck26TT6lop4XdFmACe9z7xCNOvZ2yBRaE6MEG6PRcBvu8mpDivvO5qgntKo9mxltoomeo1GYOCm 6R1wWzMkLJdMhIqe7eamaJo2hVQ3ukJeC4co9VFodFrMVzTdfFqbMDmRQPgymuj/NrGyOszj9Wu BDuPkwp9WiHXiWR3TA7WFsOBTacW5opg8ZN4omiWyDM0FzJRydwvB1jYYMEcdoNasl/DdhxVwW1 S+JC3i1S3tCLgePg2qs5HvIsCsX0OC1eAphTQ96Axhrg6L20JVzHESqtRnLYOmerln9EJal3X6C SIMxC/TjklYx1pQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240908_072150_564622_E35EB3E2 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org static inline dw_hdmi_dwc_write_bits() function is not used at all: drivers/gpu/drm/meson/meson_dw_hdmi.c:276:20: error: unused function 'dw_hdmi_dwc_write_bits' [-Werror,-Wunused-function] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- drivers/gpu/drm/meson/meson_dw_hdmi.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/meson_dw_hdmi.c index 5565f7777529..b75db829b1da 100644 --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c @@ -272,20 +272,6 @@ static inline void dw_hdmi_g12a_dwc_write(struct meson_dw_hdmi *dw_hdmi, writeb(data, dw_hdmi->hdmitx + addr); } -/* Helper to change specific bits in controller registers */ -static inline void dw_hdmi_dwc_write_bits(struct meson_dw_hdmi *dw_hdmi, - unsigned int addr, - unsigned int mask, - unsigned int val) -{ - unsigned int data = dw_hdmi->data->dwc_read(dw_hdmi, addr); - - data &= ~mask; - data |= val; - - dw_hdmi->data->dwc_write(dw_hdmi, addr, data); -} - /* Bridge */ /* Setup PHY bandwidth modes */ From patchwork Sun Sep 8 14:21:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13795511 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 D3965CD4F4C for ; Sun, 8 Sep 2024 14:24: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: 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=R0RDyAjEtZyatvnAjtfZZr2UxW/BOU22Bl3GQn7M84o=; b=rZFeN5FqLCQrkJ jGaDcxaAlvr4lKJQ+kdP9ioyoNiR7eWsw/cmzC7c3I31dA3EdC4dAwUVPQffY7OI09D7d5m26UuJ3 c0z71vGa6od4GrXVpDplUGL36VVqR0LrHE8Rf9P3tnrjg4IxONPG80PLJSTPtCCj8V9ALJxzzM0b7 doYzJHlb//5XzqBxTFbV7vwN15fmsSnJNLXL8JwWa3qVwHxeaZbdFLMsIAxCY20tC128o6eR3ml73 8Z7BYEacoLlydpqnV542ofA402NLnUiG3ad/k+t548r15gD7mZQMT2q+U5sLFkAoMSJj//T7eKQwM aZ/dl4KHPCYTuYN2rdew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIpY-0000000GwPK-1D07; Sun, 08 Sep 2024 14:23:56 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snInY-0000000GvrU-34Z1 for linux-amlogic@lists.infradead.org; Sun, 08 Sep 2024 14:21:54 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-42cae563348so1906115e9.0 for ; Sun, 08 Sep 2024 07:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725805311; x=1726410111; 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=HvzK9QbnMsy2ymdJa9zUCc35kOJVXO+e6EJ8AnZPJwM=; b=UgMjwLIDH1V7nLcDZB6NHn4wFurrcvjLRB8uHa00TBl+BufILM6LqmevGOFedU1xXy W4x60N1wIMr+g7ijfPGMe5pp2yYcJNhKUZwisMorbfVJRlQXQz+Jv4uMLratiHQp/Cex Xuwdbb/iMdgwvT0qNicBYg30Lyqu4lB9ZJqO6wHN5AYoVQ7T3B/UM0yVBeP4f9Pz6M42 oFWfHD8OLJ2NttgGDTvfmbfvb11FIBfYORMPU2GlyzoozQ213YJrgRf6Dx0pP+a97kQx +DDxm6bDCsN2uBRt5FA1iGo7xDnBwVyjqAeyQ5IZKYbwP/HNpz1xpCO4iDOlL9k0hWMj 734Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725805311; x=1726410111; 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=HvzK9QbnMsy2ymdJa9zUCc35kOJVXO+e6EJ8AnZPJwM=; b=pZfdJiCVXgvEwy6LxoDEBNYtj4jdz7cXdqrOFlYdnVlcxW5toCYM26dG2EsWMI2sFK 7LArCfJorRr05wJARBN/xP2he26+CqbHwRwah2Dvd/OHy7pUYsu/LW1Nd1iY6DhJ4ksJ xiyIyD3bPsKqINMq0w+7nebsNA2nk6Fc5sYuVIQcKNMT3DtzLrNB8Q0y6vvhCUwjFzBl Em2hdTSkWzt+6XMIraWDAcZ6Gt2BTM+N2kM0FAi+3Yrsj0cligN0vtGwxJFxtbuDPhHG An0HYyPyG8Z7h50J0opeVptmjK8qslsRhdnnA7V2xyrwtenV9UA+jJtatFflruQ0nnQh pkUw== X-Forwarded-Encrypted: i=1; AJvYcCVDTIB3kaKdZdDNknXsN/vOrRSHMlXloI76GNDG6SeKriAz9gCE9Ahfws8w9WMFZzRmW1iyZqh+x4yVM/xD@lists.infradead.org X-Gm-Message-State: AOJu0YzlgXtac6SGUJayZ4QWW5xy62jKG8lXJJydkeOy85PT7C9ikdQt wqDzKxqiRx2q5bs3bJrspeWMPFo8h/3+rSJQTPbTTHUJ/W36wiq4B0aCtnvZg+Q= X-Google-Smtp-Source: AGHT+IFGkCKTBZFIvwjzPmyy0UxMVxAvqoCnC4DEkYoje5P7hwJW0E6txtMBs/tVw5PKSAk1OLHtoQ== X-Received: by 2002:a5d:598c:0:b0:378:9560:32f with SMTP id ffacd0b85a97d-3789560049bmr1143708f8f.12.1725805310725; Sun, 08 Sep 2024 07:21:50 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895675bc9sm3465092f8f.56.2024.09.08.07.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 07:21:50 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 08 Sep 2024 16:21:32 +0200 Subject: [PATCH 2/5] drm/meson: constify regmap_config MIME-Version: 1.0 Message-Id: <20240908-regmap-config-const-v1-2-28f349004811@linaro.org> References: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> In-Reply-To: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Stefan Agner , Alison Wang , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Jagan Teki , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=776; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=aPIjI3wvog8RSD6EiSqaW+WBy8gBpWkoykw90m+N8VY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBm3bL0T6C6l0T+jasscr2GbjpaQ6wcbyWT35jQc Va62zQLwNOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZt2y9AAKCRDBN2bmhouD 1/0DD/9l6CzinqqFZnvJrhrKjqaSkq5E45kzLhr5PHD/mkCKkD0YY+T84/txfFf6/AaEP/HodmP 78HhSeHWNPcjWpnxhaRVW3IbwBdX2aFF3BW+2zQ1R/y2F+Jnz6FxpsUuuUljHW2p050ebNx9x/7 zHQg7WBZPrCGzFSBzDmEGmZvGPfnQYBtODxdINnnoSMRDR4jdbfyXKZq7MMKkdcgBSF6w+1rGp3 JijCE1endeNXX7boyGXcRaPvGd6NyeeXqwjq2UbzV4NQdccHpQvAxPqhuLsh2+tT53bvTeqXB2A jLYI3MzrcVxhUsYstfk2+KtczefK237WvepVp0agYSsV0fWeu4dhhjfpdjzNqXdbkBKdFzdER6b IzbEI9wKEN2j66N32zv9zDouDzI8413GbVHRo6DsRQ49rKInBpthEx1mdvklnkPbGLyVrMkflM3 JGhj7U7GJLZquuk2dLqCQyoSfWnQMRWMQCJ3DBRmhsKLeYOe3jtQvgwxJL8wHmPlqGq+eQwzgrJ drJS/MmBSCJOhUk0IqcXBeKumH5sF4VQY3ea9su0SfPWijaHAaZBZvjM/qDhnOtxZB048N5EJhZ MjGGdoBwWnh/NeQ74ple37I5eEF0/6l3V82Qs0HJ+mEM9MLVmHcOuTxPeR28pOP5KrThISJF+w6 gV3tP7nWzxcLwlA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240908_072152_816387_4DCB98C9 X-CRM114-Status: GOOD ( 10.33 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Mark local static 'struct regmap_config' as const for safer and more obvious code. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong --- 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 Sun Sep 8 14:21:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13795512 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 2893CE6FE49 for ; Sun, 8 Sep 2024 14:25:00 +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=UbfOv9mjqk2FC3c1IrS3+gKphP4/uS/oMYuHPb9iOts=; b=Rk3CoXqZwvd8u9 4hOo4XJw6u1k7ZUjBKEJgqTrvcGjU2lOlvl2oTSKtiRq2J8lsZZGj8EOThvig/d/b7M21SLhS7s0m xDJWZ0ixAmETvRuOszZdLU8V+rSJQtG6wlNaAyciye6RBA/N3qzefaq9vmiA0XgxzhZodY1hU8uam OFt6eIB+uYsvzW186rHKKG/dIRvIEXzMXOH84gWcN/TwxDKG2GmNInbSAXibEVAls7N8zbXAigU6Y p+Svq/s+f0m4hSlks98U3DZIpvpd6xhVKPMHdcAEL71Rd43rW03ehJTwySWwryn31E0ESJxJWRbB2 LPDRgBDzmbOTZhAzRQ1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIqV-0000000GwaZ-2UPr; Sun, 08 Sep 2024 14:24:55 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIna-0000000Gvt4-2OTF for linux-amlogic@lists.infradead.org; Sun, 08 Sep 2024 14:21:56 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42cb3c6c353so796795e9.3 for ; Sun, 08 Sep 2024 07:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725805313; x=1726410113; 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=opqWrHh+Ch6fI6vTB63ZLyRaFP0rdq6mZByygqOLt7w=; b=uscxuAkNAFTVaRPJ9KEOrTzpC558/FHz9olXUwTHWX2Ocgxai16FSmySNcTAnr1XiG k+rFO05m5jU0rK3KcRUZqHf6hk6lCAAByoUo8mzhYtXpf4L6K+KZZ3anVyX0JJcEQA2X iFoj3XVmpn5YN53YWiCJQnGhdqbK1CzRn1AGqbZB9Zo9KMoMNtXDtlK2vl2mJmv9HjTZ 6Ir7AKOJsyHL4rQ1rbLxDDbha96Qm/m4KCCorLlhWM6VeUAuNMSW3J9iL6jW8nU50DYb Oz62g2bWJDb3ch/H9mMSlhO0o0kprn7FPRi5X0NZz7SY4QfCXtqWmufLsOYmoHeZZhe+ R2pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725805313; x=1726410113; 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=opqWrHh+Ch6fI6vTB63ZLyRaFP0rdq6mZByygqOLt7w=; b=FrnZfE/gN7V9oX74BTw2qv+Ey069oFjMfEtDz5HNrh/N5Wlar3c7AH5UwC1iGyEU3L ro04BveD8kkRzV2AQoOcf9rNLvTB0L+vY+xB4vfHmGAk2JLXBmNkMnnShL63r6m4xZ3N +UzJAJCF7A8AR1SgaVXLo9sVryARfpYO11Z8pfdD7ykAdXWVDZqba9X4zFBverQtotMT aSohRk2Atj1pwrkc+ign7op4TKbxoKvBiAeI23D+ZTBUlH0seHF2+6N1h683qMZ0T4DR fzMGTsOM89sD4kDTlHI4k7edFsUVkPDoWQDOv/YVhHDk+Lw51meS6ed+ShKX3kYffyIc wlcA== X-Forwarded-Encrypted: i=1; AJvYcCXsM5bfQGAT1F2M/zbD2neN77Bl+SsoHKJO9hdKB1/FJMdydeK6uFybaeo8GyIKzdXccTShR3p/025n/iXr@lists.infradead.org X-Gm-Message-State: AOJu0YxAuXgK1BEEJcdDgnLLHrtnckjI/2kgO74YIiyICPplrG1sOI0t uHUBRVaDAykeIr9ULn152yiYTTmMZ/MzUBNCO/mDJW3s1uXRv1dU1SaisJeiHpE= X-Google-Smtp-Source: AGHT+IHk8lX+IYMMyPu1J/51I1ma3xgJuFFXQvGLe9njZslD8gy0z/8eNeprhovuMvXcy51jKG/AEQ== X-Received: by 2002:a05:6000:4012:b0:374:cef0:fd3b with SMTP id ffacd0b85a97d-378896d9cb1mr2543013f8f.7.1725805312996; Sun, 08 Sep 2024 07:21:52 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895675bc9sm3465092f8f.56.2024.09.08.07.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 07:21:52 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 08 Sep 2024 16:21:33 +0200 Subject: [PATCH 3/5] drm/fsl-dcu: constify regmap_config MIME-Version: 1.0 Message-Id: <20240908-regmap-config-const-v1-3-28f349004811@linaro.org> References: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> In-Reply-To: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Stefan Agner , Alison Wang , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Jagan Teki , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=773; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=fRgUGDqaRoZtIl+WHmIGQHM80N5JZYutQfaDHkXDk08=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBm3bL1Qv6Igmg4XEMVNhOLdsVdTsUR1ueqJ3Ovb bpFAYP2+5SJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZt2y9QAKCRDBN2bmhouD 120OD/0T8cOrR9KrPkxGh35sFSSSYkDyfJm+7NO4H+CL5+6LxsJSQE32qyrJBthu/NHaSb0FOrS DuOXs0fccV7E2KOD0uWG1qqTFo1p+lRlt6xYtbe5JNCxa2Nb5Zyjj76X5BGxhnjHZwU7E/lVJDz UAKQC97zY7Lg5q0ipatllnHQtpXMxb9HzSbRpUO8nYrjKkFwTw9630C8UK7u7SG2+F3A+gEE27T R296FzEoWCTMK2XNdVIzoa8ReBXqqbA5OtA0FwjYu1NeORxZdfMyZoxVrOK6sj0K8C5PZOdiXAh KiGP8jZg+v/cZMqyGmMbyHn5upctXKk+zGRag4ntk3BZJILn30VGw0bEppoaWeDkmQ6QlsQlkBu Ez5xrnnarhQjKlcyUQ+p238dxH68dhDA3QPQ7i8U+hf7rAnNicPIYmbbPkpKE3vXrWD23XrxBZX 1WNEXsc/idRNn+1RHHO7CsZuehyZL0TZJjbTAU1ZNWa9Mm2BbUwM+MaQxqRZr1w2tNWnk6A9UAQ TRSOKKX1sUFNsHOymhvkvG2J7It1/eYgYu3LKmvikixTnT7OwugUQdVVLAog52PVjM1Jojj5mHK cM88yx9IKD5tes6N9i5SWjkR2X7Ri5/9EOI0naJm452GPgBcBh2YQZFUC2VhKNQ3rWRWc1+ZhtU 00CRDz+hXylwv1Q== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240908_072154_688401_6AE0D222 X-CRM114-Status: GOOD ( 10.41 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Mark local static 'struct regmap_config' as const for safer and more obvious code. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong --- 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 Sun Sep 8 14:21:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13795513 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 1E506E6FE49 for ; Sun, 8 Sep 2024 14:26:01 +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=qMyDP0hbNCbqQ3sB1blSDrxX1d4elWpIfxOYzdBrRA0=; b=JJDWQSC+8UAO9F HmQjyGlVcmANayrR9Omks+A4SfCYXnI0KLXWFmWQcbjYYp03g4GBrc+2BH5DNgNtPd9mGlLd3HR2/ ptz3swyJXyxwFPOufpXXYjk6P5EmodqVYQ2dMfaDlNN+KGNXtaHu/RUPdyYPlCMD3p26UDemvWBHl e5Wpxe8Mzht2oGjiFvZEp4vCvSGgCgHnm77YGItkHOxHCgvv3bGQQa5/ThrALqVqOkLn7ESvkr9AD AnRkcxzktf0EpJIBEpERBeVE953gbub75QqjvwfAFTB/XV2FhqXVbrs/4Wwjkmd5rp76TOwgP8LM5 vycueSr6S2gjz67Y2Peg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIrT-0000000Gwjt-0RYy; Sun, 08 Sep 2024 14:25:55 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snInd-0000000GvvC-0pjX for linux-amlogic@lists.infradead.org; Sun, 08 Sep 2024 14:21:58 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42cb0d0311fso1541605e9.1 for ; Sun, 08 Sep 2024 07:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725805316; x=1726410116; 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=uB5jr1/a17Qw9RVDWm+OnjEYYAvO8EC+zVlD8qC1Kcs=; b=rKOI4i0xJF5dL+K3blwJJFUsu8RT3F8Xpy/QOij7NtcFOtgTA3SeJTDsKnKjFkipYc jb2Ws49rfasSXdwngScudRfGhFc9sVszYTn404CbXXe9upaCCvSnMzenJCGwlCy67R3o hu514xBIFu49sZQXXDkOeQB8Q7EjfcyH5k1JKrnhfPOyjv0OaVgJAlqoAw2SAgaFpXMO DmS8Ck00GzWCqjDCz6K2EzPaspJMaf69SBqqaEX+S9Nr711fGfXxcIQT5efEPnpg0UfB acY4sAEAHaV4tMMDhfeOYdPrqgFBh8VmYOdenX+9nk4gzh4Xw+hK9dmSVrz0p0P35CsG b9Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725805316; x=1726410116; 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=uB5jr1/a17Qw9RVDWm+OnjEYYAvO8EC+zVlD8qC1Kcs=; b=vUpuC721jXHgWKvoe+Y37oteKf770dFxcuj1Kja9htFnfq8lfGlfunkzr8mi0d5A2z 4yn7wPqoxsjccPXjqmrO13GYy6PC/EmTgBR7Ht3VzWm4zc82RKs6GU3XYV0p7vL9Jsvy 9VBiO39x7mvQvb5NOJbqGmCmCQieiGchTEDhyY9QSKbAB4qL98Vi2bcDj72iV3kv74ZB 2J6ZmlZvEr2/jbFWeT7hQv75mCFGC9HwjhOoWhuGV5C64kzpz+bJAkqDro0FmkaaZc7s b8CecVdaePInf7lqKo0OuYMeK7wRWc6zf9sMAtUEKTat9xoWeMzUh1q++/1oQuzuLN0Y 7qrA== X-Forwarded-Encrypted: i=1; AJvYcCVRxyT+Tf6Ea/Sp+uvMi9Fq0Xo4F8n7e3rwJm6nKP5boReQ0JR5+6E04l0/DfwAXMRO2LuhooRFcMIdtzta@lists.infradead.org X-Gm-Message-State: AOJu0YzcwfEP0UHpYNMqLaHXA4C+ZluRmUBLsRT/XAVHlFcwJSLi4XMw s733Crsz38xVYoDt3OYqIb4Mu+SCfeF1m7U64n3rjf0+hjKp/t0/XN8Cf2f5YhY= X-Google-Smtp-Source: AGHT+IEFghUIs3JLLMCLIc/+MFj1+yQJjFDJp6mNzr37xyzU8YsLEL/hiSYgzOa7b690ExU9/x+VRg== X-Received: by 2002:a7b:cbd6:0:b0:42c:b55f:f4f with SMTP id 5b1f17b1804b1-42cb55f1448mr4842685e9.6.1725805315297; Sun, 08 Sep 2024 07:21:55 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895675bc9sm3465092f8f.56.2024.09.08.07.21.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 07:21:54 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 08 Sep 2024 16:21:34 +0200 Subject: [PATCH 4/5] drm/mediatek: dp: constify regmap_config MIME-Version: 1.0 Message-Id: <20240908-regmap-config-const-v1-4-28f349004811@linaro.org> References: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> In-Reply-To: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Stefan Agner , Alison Wang , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Jagan Teki , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=762; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=crUOVtF8wl03qYwZi7N/pIKnRz+XR7DUlbnH+NouxJI=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBm3bL2WBZUZoPTgLGvdfqLUo2h9AY+9HYWr/Zzr GQDQ8pK39aJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZt2y9gAKCRDBN2bmhouD 11ZXEACa9khZ8BfJwy1IrIOqvJtmn/fQUMm0z7B3JpGGWvxswrY4bTvTiuOUHGXaWYykA2sKS5R /mPLfJixbQ9smQsZ6KU9jCYt0xkLABPMIGAon5DUsQaslCnvbwRBUmFPSOolN2VVr+JFcKGGiwX UXBxY+kI+IvA4OG2cqdk4SWgvA0E6Zk/MbmxeP0tQSqOw5zEKAWPU5Z5N4VsiHWBR5Fi4LX0Q+r YUwHWlud1iq8Zg6uxf2Uaahu+iHdqsTl8uoU1LUloB7rRNSYEA6MMGquVGp49NxXDT6+F2OlkM7 ZPpM0YH9fms45q5055fOBsjsvrFv09qSVrXm25l2bmG8MbsOPplxoXHUZ1VucmWYJP1H6RN6+SM 1MHCeFao243tZxITkw+SH/6X+hFgH3e1mDg31NDKulPxZP/zLJ9d+nJES+SMH3MuDEVkvEjKzIY SVEorP6+8K2r5h4Q9pooSy7Lekdhg68VA48BeW2/htj3tjFV6GgEwBRgAntFq/BbwivXmdjzgT4 71R9akZCVSJxErQ/p8HmBvpSWsgSG/KUo5PepF0xsY/ekvLVh8Ntlpoawlt1EWRqKQ8JIwa0FA/ UWNdX/v8HqKnFADlWwBpeo1cTswqjmKt3tuwxJcXppAgilI9oAHbyHxbEt+Jtur8WwPsWQpH+Mq GFKo3Js0eafmwbA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240908_072157_280362_3D2A1A84 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Mark local static 'struct regmap_config' as const for safer and more obvious code. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger Reviewed-by: AngeloGioacchino Del Regno --- 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 Sun Sep 8 14:21:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13795521 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 96347E6FE49 for ; Sun, 8 Sep 2024 14:28:01 +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=CK6v40Uv0CUvB69hz9CMc+7Im6UIKm+xj7Mn/l8gd5c=; b=LdO6uS+/LhXf/T AKBV4QEzcj3Ge6nVNG9j6QdmilMuaN5AspXqabsGNG7OJL2DO4U67YaR0wOPbuFjH9E1KNhl1qwRw GkO+TuoShnB4K4yUGr3RUkbSJF/mu/96PcOmHDPia+aMd11pm4l8uBG0R2cQF/VeMdo8SJw1J/1it mNCP0lI29JmjqJntOEoA6jPYvnvQ+Z66ZO2HB4mkaYUfq6E1MjyRDhm6HYiczAwg+c3L+201QO0I6 W3FCSK442n8YuHZbzTitvkPz3SkbooONYom/YkvRy/AP6SfhWv1uNMeTzBx/BxsqPmV2LjQlDbdkG Ex91beExG1pHKiWoDXhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snItP-0000000Gx7x-17FH; Sun, 08 Sep 2024 14:27:55 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIng-0000000GvxB-1UKQ for linux-amlogic@lists.infradead.org; Sun, 08 Sep 2024 14:22:02 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42cb1e3b449so1191975e9.3 for ; Sun, 08 Sep 2024 07:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725805318; x=1726410118; 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=i0L1ilx+hMa2xq7WP3Qq4RE5fisuDsq/efyV+pjB+nU=; b=pVGuXMtScz34g/ZhhOgqh+Msp+VccOS3GF/fofZTxq+o0/xo5XQ6ooqz5xi/KrvpeG s2U1RQrTlFZalYsDmUMg/WnyEQlf4lLu4dn4PL9GyiC4Z9p8A1tT8H2lVLnkLItXkF7k XOCTaaN8CcRNOQQCMtlRjsfNwDhN3ahwJzuTlfrU4gnAo5I8hkVRN7/gzLzRlfKwFCrY vLj+opc2kagOLHbO5oVlJT+Hg9cyI8Ts8CeegmH0NgVRuAnGlKks0TpoRPMz5+jjtt0W n77JKLS5Emj6kbJhMTJEt/zVF/faKM7Fs77zUPlwJhOB6oLjok4nTjTm/2I2+BJUv6m6 6BQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725805318; x=1726410118; 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=i0L1ilx+hMa2xq7WP3Qq4RE5fisuDsq/efyV+pjB+nU=; b=ighfaRwWDGFcyiPqnQjf5ZKv0ObadEFEiSlwe2u6Dk9dBhOC0b/GqwbWKsZTxt5MNV LAv2g/xp/6TiDUktrXezq2ZoxfZDBxPb6ELHYJZi3S6Nt3qsqZY0ZNqVA0jKLwIMufgb SSgo1hZIPyTi7vwQ4hYNXAQGbdO8iWw+Wgq1rWSY2ZLuxwyCBDvZ0yKCgfP4DVnzRmmj 8EiiF74IHdZklym4IHbw8meclsRAQNcoiE/Ku2KjQ7kh/4YgY9jgzz17KMY/ANiPTXdW r+JDw8EdjM7pzP1e2+b3QJoATptSXgkCAFiKXAmMHLSrGx1ZQGMSPPpeXeRg3K+Uq/ya QsWg== X-Forwarded-Encrypted: i=1; AJvYcCX1z1SmWXWzlNILkAP3fRNbj+j5j6fOJ12HmYYGJaJ+pcDELyQbMKaDMw48z3OMsRnbISeQErJuMetFFvyF@lists.infradead.org X-Gm-Message-State: AOJu0YxGEnHuKcL/GuubZAvI/WZmiQgSWOvg+KMcjTNNT23h0YNaOfco Fr/eBTmmi9+mA7xZYVVBNLuT/lSBNQ2v0PhgSMq+nKNExYprRw3FzTyW9w5L55s= X-Google-Smtp-Source: AGHT+IHTVEZ6ZfPKh1HQZv1kOYMnnFQNGX2KN1ojIsct/KCdkX/n63VIjNLycr0FImyCNmbejXsuHQ== X-Received: by 2002:a05:6000:4029:b0:374:b6f5:89aa with SMTP id ffacd0b85a97d-378895ca6ffmr2551755f8f.3.1725805317414; Sun, 08 Sep 2024 07:21:57 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895675bc9sm3465092f8f.56.2024.09.08.07.21.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 07:21:56 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 08 Sep 2024 16:21:35 +0200 Subject: [PATCH 5/5] drm/bridge: ti-dlpc3433: constify regmap_config MIME-Version: 1.0 Message-Id: <20240908-regmap-config-const-v1-5-28f349004811@linaro.org> References: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> In-Reply-To: <20240908-regmap-config-const-v1-0-28f349004811@linaro.org> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Stefan Agner , Alison Wang , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Jagan Teki , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=821; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=oU64b9cUM1B+FhKojFLvauLBTDBEruXsTRhzx3DV120=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBm3bL2DUYDY7DvAGsL0obtzggBzQHcH1rHvgeEl aWZ6s/p+46JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZt2y9gAKCRDBN2bmhouD 1yqTEACYXmHXPSUUnUlz2ip/BtD/rSYishh4B1RnVHWgH7UaLOnusfLIQ/7uJcPa+iqZ9kDBTTb 3+IIeUgwtZ0RPchNZRGIrVB3QZ5k5oUJtmZe7ayPmckWY6vgDQwhNsKYwet3LEu3RoDZmFRxc6O Ulcs0uVhwQYYnrgTBt2u3zDTuXDxjQ8atzPrSuKLYvWjEMQcXvOq0sX77uurGvskgk+g/fmUtOu HfmBJKP5xxh2YCKxI0rfz/j4bzSqT3hto0QLumegf7ICdV7B+h7BxXaQsPYKULpXbZWgwr14ZjA 5f0vJThCx+grRi3BPdIfhcd3BsYrcEKm8T5VUQvT1s8KtwR/En719KsEnIawDIfCAC6fme+ji39 +EFUJB+jcPU4fh3AcMPpgbwHiok7gJS0XU3w0bd3OeB42/N5tF+mdG+On+WF7GkMX7oXSxfOBY8 xWXgGEjMmTjPdh1im8PhJMBrF55WMuJIpXXidxoEic0q90Js9mlJsbB/GQ0ezTeJR05r0/+h6fo dUW6lXJevucchL0arzAqukqPWHZBJgp2xx415MFZ8EtoUPeOksNPFYd/PF9dvKjNKIYS9KLQYKG zmpFhnn+Xb2no9UKnxbsbCqOFrOz+Hv6fDF2CvLMm//r9VtFF7F+JjiNJAXt0R8wm41egewrsBg eUBSJIsYNN3VS2w== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240908_072200_503957_0CD967F4 X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Mark local static 'struct regmap_config' as const for safer and more obvious code. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong --- 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,