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: 13795515 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 A2627ECE579 for ; Sun, 8 Sep 2024 14:24:03 +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=DmNCAE4Q1YMX3Tcl8gMK7BYQKsWpwsEcc2NsJh2xrh4=; b=1BzTf4z5GXvOUQUcowWRJoO1Nr 2y1R4gzXnGXO/VelNGymA+t3y886Y1Qf9BaCarjfpiEjVvdtMFjZYDXsvthJH10AMf/CAExKw9ysy 5PktfT84KXNQqj1Ye3j5k1TRZ6KDz6ye0G+5/047vVrQeGUkrLwlsKlpCR2YHXXlOUCcsotY8PMuT RGhvOZLInpAi51L8i+5kixxPn4JESn22iKv/UH9hh6Ua5icKQQI+HyDlxKAHBvqBKVbtWHQEU0av2 /lINr8E5D+ypmiX0hDzRdMgRbRASP1Toj6ovjLhnFH1qAXEh5rwTrmGBqxI076+5juYgHd8FgqSJ1 X3lUU3og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIpW-0000000GwNx-1taJ; Sun, 08 Sep 2024 14:23:54 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snInW-0000000Gvqf-3ZhM for linux-arm-kernel@lists.infradead.org; Sun, 08 Sep 2024 14:21:52 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42cacd90ee4so2219555e9.3 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=Nzp49h5U9cutDicdHeT28aMiK8gMjTKeHWZee351qafVLpaQPX9yW9jK9N18oKV0KC 3bLgzPAnPqa2rUEp6TDc5xbuKSw9mAS98uN6DZznANt9gaPB/xOBHVyzvmElTSfFTajE 3LMQXQgIGTX8tEL5Uc8VrwVi31CqQDRfObBGKSzC0t1V+GzJA1QxDOO7q2G54JMmTxuv XIuK6R1+197M84efZnlJNqt2QezfF7gzhCRGtpksDT0JxPVRxp2N31ym+1So5VtCxTeF 55r40z3P6jHIEGvFLAZ/dRcI/VHHNVJQoP+koZSyQHLNdq8OOi7EIK0RZBvNtaNR7KHH wfWQ== X-Forwarded-Encrypted: i=1; AJvYcCWTx/rDLy+tpdbcl8ubvjGXFJaN7yq8ijXK8lmHxBDPBFZEK1hZ25iEXDx7vKWcfVwAS2JtPSJuV5ua1gQWO1qV@lists.infradead.org X-Gm-Message-State: AOJu0YyeDkTVFQUbxeHmH5x9dBr4U2hIHwEDi/vfchhYEywHH6daj+i4 jplLjvmu/M2fdYyRZbL+6YOBrv+PRFQQfLK9MEbfQmCmUiSZGpAcocxYa9sO8/c= 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_072151_137746_F4C56585 X-CRM114-Status: GOOD ( 10.88 ) 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 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: 13795516 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 18EA0CD4F4C for ; Sun, 8 Sep 2024 14:25:05 +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=HvzK9QbnMsy2ymdJa9zUCc35kOJVXO+e6EJ8AnZPJwM=; b=N2p+LqtJSToXzpnOejY6OSIW+P E8ldNQNtt6tXm55M99eL/JXaSlCrQSdo7JyLPBkP46sDTlztw5bXKLtTSXgVfPxBP7nipEjOc2YwL fFR/z6iZ1lqVXWmeRI94z3c/AhL832dYv5U5i32T7oDRH7wa+3n0gOwkybNpR6BUfF22A6CLprIHx 8mcziQQnieRDmyk8iCGjiH81Mt5rM1Sxu0tIm9dtwwTjXV8RHp7m98t/bqDXWKYG4H1LEkQjSkKq6 qhqsJFxkZS8AhAb765tgxnB+jUAye8UY6lHjQ+FN1q7tBfJDsDHj+o23H4GbenqHWSnGfQ1ehj8zu UWGBJnLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIqV-0000000GwaC-031V; Sun, 08 Sep 2024 14:24:55 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snInY-0000000GvrV-357q for linux-arm-kernel@lists.infradead.org; Sun, 08 Sep 2024 14:21:55 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-374b37bfbf2so83305f8f.2 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=LHgNS1uLMInx+G2q/Xmw9z9LCvQQwK4la2HBmQpDJdyYoXH3TwrXavhOAJiOeGGa1G 0Dv63ASrIYQsrbCtVMLtzerhgnT8DGEaB+gN4+JMdRosJ7j976BxzUx/wGi9iGJysbgY 1TOlXr5NSmfHMXvHGhpVTer+XMmunQgl360TO1tbJjxT7YaY+mofIpxE/aorvvDEYkpH e6PkAWFoPgWwtaERS1r5bFePmS67jMEbUp74hQiwNikjevw3p8rgAQoL7kbnc0UR5k4M Zk09JGCqEGK9ygkAy5FgXa8jezkKGl+FeMzq7cF4MuD0zqi2nWV/Zuj8+AElEVxoDi6j pJnw== X-Forwarded-Encrypted: i=1; AJvYcCUfPIjx6VuUoCsHbAMkCIlDsPSb10QPN0M1l34zrf7LcnT/+tYCofYHwkU5YPnd+GlMNAJEGjaALCMcQ+Wj+xs6@lists.infradead.org X-Gm-Message-State: AOJu0YxT9havfiVApljtJl3XBIcwrvTEXTMmLIkpEwoysjeKebByEn91 SVKRl82g7lGQJZD9vUgJZnTmL1LTr9nz9BoUhQbOf7me8TwrMBQJsLC29CAPgTw= 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_839629_A3592D88 X-CRM114-Status: GOOD ( 11.86 ) 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 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: 13795517 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 23E00CD4F4C for ; Sun, 8 Sep 2024 14:26:03 +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=opqWrHh+Ch6fI6vTB63ZLyRaFP0rdq6mZByygqOLt7w=; b=IsvR5Wnu2oPWmsR+3V69fRQwtG ZLaJGFl3pOEiplbVKyCagPKwer5Unv1WI0vesi/AOS/SAnf6R6QwiovepGH7LmsDWd3YGJH8oeNkH P9zKu5WjSnPoc3ft+X+ZgkazYDlaYTqRPkFvjxwS+qANmxyQb9tU4VZeGI92Y/7x7pYL+PLAwObjC 8DDi6aOjUrVpiYG3qRkJXrPBRrZ8lfPf4tWE7ubNwJjsfEtK+cDxUlE6Xi5R8Bj9UESTc1mkGjanH EfeP+O9txJKQbMqMaIQJsu+V69iHJRKUCBiLAFKZjnJZxXBPMEABN4w2puLZ9SRTPdJpXMA31v4yD 1RXuEVlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIrS-0000000Gwja-1tTX; Sun, 08 Sep 2024 14:25:54 +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 1snIna-0000000Gvt6-4Aoh for linux-arm-kernel@lists.infradead.org; Sun, 08 Sep 2024 14:21:56 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42caeb4d671so1826295e9.2 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=p5J5QAu6trezfqDXlqKDhK8s4D/EjZCwSTfyz4YIsTTfCV9tGPynC6KxYCm6qCLxU0 BuCgh9b6NuA6559IIOKjOCmjB5B0f0OCcvFyEB0rrxEiWk2OWqDNEOL7ntKciuC3vFqB KF7VwUohzjrDdYQIG/OblR4qpGYCJzly2JCjao/yRRt+brzPw6zD9UDJbD2zSA8doHVq 4tNRZTH/PpRMe8lvzJK3+6WxOqGu4lZAhuIL501Th6wEIrORSF0zeT84GbdOQHyNU9Wx Z/7pMN8LwhgF+ybvY5VlemBtSbcIs6W9eM1e9iJ68IvVYRkkDUCQHM5e5qB5bbB5ylUg kUrQ== X-Forwarded-Encrypted: i=1; AJvYcCXXtMoblBWP96tiGynXk7B0eStecjh5al+UoQYITQvdWSwGRl41tZ9SIQ0OFqr8dvpiwTHgTin92bQax1hG4X6a@lists.infradead.org X-Gm-Message-State: AOJu0Yx7i6MJukn7ue0Bhkqpb7COZOBqogDd/5gFqJn4/sdpzdoV2l99 yLW13LJV3PoEFEt3+QUgdrMVTU3q9WvZ3L/LGEsFsimyJWejf6GC1GZ7tgtQOQQ= 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_072155_234110_058E62B5 X-CRM114-Status: GOOD ( 11.93 ) 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 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: 13795522 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 8369DE6FE49 for ; Sun, 8 Sep 2024 14:27:05 +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=uB5jr1/a17Qw9RVDWm+OnjEYYAvO8EC+zVlD8qC1Kcs=; b=OALph0H+1maaazyrnjB6sNdnxJ YvIjzxCenRqRfHqQ8bLPNgq9s9atH7QPYwgRgH81Q5Q/m0kh7k103cJZmSEuyR2SCRwqZWHONtUiT IXh9F254l2PC68w018fgNix3WAuJvXF+e6hehpnVjsdhonb5EpEjSbBWv03dNbQ+dUUeSCJ9kIexh re6Rm77rGwoqB/MUi2v/9wGBM3kB4HIyB/IR7BiOff7qxQBVNYh0spIfk0qeTDzam54rvt9cOaimK Bf62DP7+fai2NIxroNtIobYnkLjs8mQrdxXfh8ydQJ35HoNWjUcNmDlHeG0vDNTilp6mEs6avqsL6 0JKx7eJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snIsQ-0000000Gwsa-12Nk; Sun, 08 Sep 2024 14:26:54 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snInd-0000000Gvv9-0mFm for linux-arm-kernel@lists.infradead.org; Sun, 08 Sep 2024 14:21:59 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42cb1866c8fso1305605e9.3 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=Dz/0QIp9ab+ZXCFoxghXwSqRAeOPvvb1PEjsbzt6TlQ29yPzoowJI4cP3OE6h/7Okd tgCCzKs95VxFuK8rTJobzutfDNvFdkO8dF4KfhvDl2AadEQdkTLoiRjf5kDXNN+Mp41w SBILFLbbpntk5gT8J+rOD+eJeaKGZI6FnSX0unJG6jZR6QDNOlOZ8YD60yEaAUNZP+Zm EJya38WMTUSnNj4qrJ4ANh1g8JAiGTeW/VK/8EjZHJY8SoHl391T1AkgTnkP08UgDXXH RNOQgePP7Iop7fLXVdZL3jkwko2OIsxGaQQa/6SKYvssg4CWi4oW4bi2k+nHyEXPk1xQ mrUw== X-Forwarded-Encrypted: i=1; AJvYcCXilKIth3d2WHRZ4waLqGoiATLjDGD74Z7tOHr9Z7bldsqm0GBhhcdzCYtdj1qEq2+ERnEq7fsmO8wAC/nCDj1O@lists.infradead.org X-Gm-Message-State: AOJu0Yz3MuTijVlFk9vMjC6qVwvVMQZNcavJoDzoP5peoLck5BKmxoum 1YpH2Mw+6b2z2hooTrZR71+fU9hQ75JXVCHJtN2beaM8JmYBcMC3MXMAMekLACE= 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_297652_8BD547BB X-CRM114-Status: GOOD ( 12.36 ) 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 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: 13795523 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 74298CD4F4C for ; Sun, 8 Sep 2024 14:28:03 +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=i0L1ilx+hMa2xq7WP3Qq4RE5fisuDsq/efyV+pjB+nU=; b=FjRk1YixmOEXhgoCK8Vvx7x4yD kblKkWBAKwSlwT/XuoVOSnCjYuigUxJd7gk4TTPefVccNVufteqjzO0QzyUiWLROd37YegMBzkwEE /oSlaqQfXYfUTgcZKoIsHsfngFgMkPtRk+9TNRlxNbYoILJ1WYz8SsXFvryl4PpQ8W/Hiox6R0MQu W+1hlt28CRh9lWlU1uiQ/SgYCkNNOdSe8UtM4hFDxgqVhVeFg7n+75bdp6rE39M+vb6J6ujZUePJU YtikiYrI4eviipzZN8dS9SeWyzkP7/QBp/KXzOOOYNBR9AbGsLOEUfEnUr+kpHxftvZ1X0OrLODzZ X+M4r2Sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snItO-0000000Gx7g-2QlG; Sun, 08 Sep 2024 14:27:54 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snInf-0000000GvxA-3thB for linux-arm-kernel@lists.infradead.org; Sun, 08 Sep 2024 14:22:01 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42cb1866c00so1306565e9.0 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=QVGoIdq2hXiQ0xaeF81VQOOjWAscViTIQ7EIkO6G2q7ziAdFLXT3bBrOGgdqNHyoOg Sy0jajtstZF70BNVSUyiPgLE0GZL1n10RWin5X/mPvoYCLXugfU7NhW6hBPDuD5iYqyI LhEdxq9X6xu5AvGjgoKQDyBuEFwYjgj163M+CvxXIDhkK6UrwO1tJxJ/TL/ikmkDnRrR qM2rZ5o4W1Ewrq6fS/vyMbR9n9FBQqe9UBkK0yjLOYnaVTO3Hbcvnae0lu8Tm9g7xD5B h/aMy2yp/bjlRr+eX5wxMJ7Zq/EynD/t+niqYDPjVVWChWp1++E6mWE8laBVS+C4TmKA I1Qg== X-Forwarded-Encrypted: i=1; AJvYcCVihhSzt1Zj7TbFfxI8EOdyMelqj4Ya0TAPhauftd3wvZeUK6Rhkga5vfliDaUxPQm5QRgXfRAMXS8Dv3CvPyl9@lists.infradead.org X-Gm-Message-State: AOJu0Yzfrez3mq1LuZQp8cj7qgd5Eq2KEPkvuUKxUwMSChCuObJxv6B+ EhVnTIIDOVIU7fzCEhvOXczoeCLGyQ5GU9epjP7n/k636i4jkg/tUv8WfVDbobk= 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_012265_18D968F7 X-CRM114-Status: GOOD ( 12.25 ) 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 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,