* [PATCH] clk: versaclock7: Constify regmap_range_cfg array
@ 2025-05-28 19:44 Krzysztof Kozlowski
2025-06-20 7:30 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-28 19:44 UTC (permalink / raw)
To: Alex Helms, Michael Turquette, Stephen Boyd, linux-clk,
linux-kernel
Cc: Krzysztof Kozlowski
Static 'struct regmap_range_cfg' array is not modified so can be changed
to const for more safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/clk/clk-versaclock7.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk-versaclock7.c b/drivers/clk/clk-versaclock7.c
index f323263e32c3..483285b30c13 100644
--- a/drivers/clk/clk-versaclock7.c
+++ b/drivers/clk/clk-versaclock7.c
@@ -1257,7 +1257,7 @@ static const struct vc7_chip_info vc7_rc21008a_info = {
.num_outputs = 8,
};
-static struct regmap_range_cfg vc7_range_cfg[] = {
+static const struct regmap_range_cfg vc7_range_cfg[] = {
{
.range_min = 0,
.range_max = VC7_MAX_REG,
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-20 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28 19:44 [PATCH] clk: versaclock7: Constify regmap_range_cfg array Krzysztof Kozlowski
2025-06-20 7:30 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox