* [PATCH 00/10] clk: constify struct regmap_config
@ 2024-07-03 9:50 Javier Carrasco
2024-07-03 9:50 ` [PATCH 01/10] clk: meson: a1: peripherals: Constify " Javier Carrasco
` (11 more replies)
0 siblings, 12 replies; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
This series adds the const modifier to the remaining regmap_config
structs within the clk subsystem that are effectively used as const
(i.e., only read after their declaration), but kept ad writtable data.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (10):
clk: meson: a1: peripherals: Constify struct regmap_config
clk: meson: a1: pll: Constify struct regmap_config
clk: meson: c3: peripherals: Constify struct regmap_config
clk: meson: c3: pll: Constify struct regmap_config
clk: meson: s4: peripherals: Constify struct regmap_config
clk: meson: s4: pll: Constify struct regmap_config
clk: lpc32xx: Constify struct regmap_config
clk: qcom: lpasscc-sc8280xp: Constify struct regmap_config
clk: sunxi-ng r40: Constify struct regmap_config
clk: xilinx: Constify struct regmap_config
drivers/clk/meson/a1-peripherals.c | 2 +-
drivers/clk/meson/a1-pll.c | 2 +-
drivers/clk/meson/c3-peripherals.c | 2 +-
drivers/clk/meson/c3-pll.c | 2 +-
drivers/clk/meson/s4-peripherals.c | 2 +-
drivers/clk/meson/s4-pll.c | 2 +-
drivers/clk/nxp/clk-lpc32xx.c | 2 +-
drivers/clk/qcom/lpasscc-sc8280xp.c | 4 ++--
drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 2 +-
drivers/clk/xilinx/xlnx_vcu.c | 2 +-
10 files changed, 11 insertions(+), 11 deletions(-)
---
base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233
change-id: 20240703-clk-const-regmap-c9d56004dd06
Best regards,
--
Javier Carrasco <javier.carrasco.cruz@gmail.com>
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 01/10] clk: meson: a1: peripherals: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-15 12:08 ` [DMARC error][DKIM error] " Dmitry Rokosov
2024-07-03 9:50 ` [PATCH 02/10] clk: meson: a1: pll: " Javier Carrasco
` (10 subsequent siblings)
11 siblings, 2 replies; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`a1_periphs_regmap_cfg` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/meson/a1-peripherals.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/a1-peripherals.c b/drivers/clk/meson/a1-peripherals.c
index 99b5bc450446..728ad13924ad 100644
--- a/drivers/clk/meson/a1-peripherals.c
+++ b/drivers/clk/meson/a1-peripherals.c
@@ -2183,7 +2183,7 @@ static struct clk_regmap *const a1_periphs_regmaps[] = {
&dmc_sel2,
};
-static struct regmap_config a1_periphs_regmap_cfg = {
+static const struct regmap_config a1_periphs_regmap_cfg = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 02/10] clk: meson: a1: pll: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
2024-07-03 9:50 ` [PATCH 01/10] clk: meson: a1: peripherals: Constify " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-15 12:10 ` [DMARC error][DKIM error] " Dmitry Rokosov
2024-07-03 9:50 ` [PATCH 03/10] clk: meson: c3: peripherals: " Javier Carrasco
` (9 subsequent siblings)
11 siblings, 2 replies; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`a1_pll_regmap_cfg` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/meson/a1-pll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/a1-pll.c b/drivers/clk/meson/a1-pll.c
index a16e537d139a..4d0a6305b07f 100644
--- a/drivers/clk/meson/a1-pll.c
+++ b/drivers/clk/meson/a1-pll.c
@@ -295,7 +295,7 @@ static struct clk_regmap *const a1_pll_regmaps[] = {
&hifi_pll,
};
-static struct regmap_config a1_pll_regmap_cfg = {
+static const struct regmap_config a1_pll_regmap_cfg = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 03/10] clk: meson: c3: peripherals: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
2024-07-03 9:50 ` [PATCH 01/10] clk: meson: a1: peripherals: Constify " Javier Carrasco
2024-07-03 9:50 ` [PATCH 02/10] clk: meson: a1: pll: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 04/10] clk: meson: c3: pll: " Javier Carrasco
` (8 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`clkc_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/meson/c3-peripherals.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/c3-peripherals.c b/drivers/clk/meson/c3-peripherals.c
index 56b33d23c317..cfa573262bf1 100644
--- a/drivers/clk/meson/c3-peripherals.c
+++ b/drivers/clk/meson/c3-peripherals.c
@@ -2296,7 +2296,7 @@ static struct clk_regmap *const c3_periphs_clk_regmaps[] = {
&vapb,
};
-static struct regmap_config clkc_regmap_config = {
+static const struct regmap_config clkc_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 04/10] clk: meson: c3: pll: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (2 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 03/10] clk: meson: c3: peripherals: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 05/10] clk: meson: s4: peripherals: " Javier Carrasco
` (7 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`clkc_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/meson/c3-pll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/c3-pll.c b/drivers/clk/meson/c3-pll.c
index 6d5271c61d14..f09f4f7b46fe 100644
--- a/drivers/clk/meson/c3-pll.c
+++ b/drivers/clk/meson/c3-pll.c
@@ -678,7 +678,7 @@ static struct clk_regmap *const c3_pll_clk_regmaps[] = {
&mclk1,
};
-static struct regmap_config clkc_regmap_config = {
+static const struct regmap_config clkc_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 05/10] clk: meson: s4: peripherals: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (3 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 04/10] clk: meson: c3: pll: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 06/10] clk: meson: s4: pll: " Javier Carrasco
` (6 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`clkc_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/meson/s4-peripherals.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c
index 130c50554290..ba1d531fce4f 100644
--- a/drivers/clk/meson/s4-peripherals.c
+++ b/drivers/clk/meson/s4-peripherals.c
@@ -3747,7 +3747,7 @@ static struct clk_regmap *const s4_periphs_clk_regmaps[] = {
&s4_adc_extclk_in_gate,
};
-static struct regmap_config clkc_regmap_config = {
+static const struct regmap_config clkc_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 06/10] clk: meson: s4: pll: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (4 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 05/10] clk: meson: s4: peripherals: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 07/10] clk: lpc32xx: " Javier Carrasco
` (5 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`clkc_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/meson/s4-pll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/s4-pll.c b/drivers/clk/meson/s4-pll.c
index c2afade24f9f..27c10fc499be 100644
--- a/drivers/clk/meson/s4-pll.c
+++ b/drivers/clk/meson/s4-pll.c
@@ -799,7 +799,7 @@ static const struct reg_sequence s4_init_regs[] = {
{ .reg = ANACTRL_MPLL_CTRL0, .def = 0x00000543 },
};
-static struct regmap_config clkc_regmap_config = {
+static const struct regmap_config clkc_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 07/10] clk: lpc32xx: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (5 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 06/10] clk: meson: s4: pll: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-08 20:32 ` Stephen Boyd
2024-07-03 9:50 ` [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: " Javier Carrasco
` (4 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`lpc32xx_scb_regmap_config` is not modified and can be declared as const
to move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/nxp/clk-lpc32xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c
index d0f870eff0d6..e00f270bc6aa 100644
--- a/drivers/clk/nxp/clk-lpc32xx.c
+++ b/drivers/clk/nxp/clk-lpc32xx.c
@@ -61,7 +61,7 @@
#define LPC32XX_USB_CLK_CTRL 0xF4
#define LPC32XX_USB_CLK_STS 0xF8
-static struct regmap_config lpc32xx_scb_regmap_config = {
+static const struct regmap_config lpc32xx_scb_regmap_config = {
.name = "scb",
.reg_bits = 32,
.val_bits = 32,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (6 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 07/10] clk: lpc32xx: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 10:50 ` Dmitry Baryshkov
2024-07-03 9:50 ` [PATCH 09/10] clk: sunxi-ng r40: " Javier Carrasco
` (3 subsequent siblings)
11 siblings, 1 reply; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`lpass_audiocc_sc8280xp_regmap_config` and `lpasscc_sc8280x_regmap_config`
are not modified and can be declared as const to move their data to a
read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/qcom/lpasscc-sc8280xp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/lpasscc-sc8280xp.c b/drivers/clk/qcom/lpasscc-sc8280xp.c
index 3693e47d548e..9fd9498d7dc8 100644
--- a/drivers/clk/qcom/lpasscc-sc8280xp.c
+++ b/drivers/clk/qcom/lpasscc-sc8280xp.c
@@ -23,7 +23,7 @@ static const struct qcom_reset_map lpass_audiocc_sc8280xp_resets[] = {
[LPASS_AUDIO_SWR_WSA2_CGCR] = { 0xd8, 1 },
};
-static struct regmap_config lpass_audiocc_sc8280xp_regmap_config = {
+static const struct regmap_config lpass_audiocc_sc8280xp_regmap_config = {
.reg_bits = 32,
.reg_stride = 4,
.val_bits = 32,
@@ -41,7 +41,7 @@ static const struct qcom_reset_map lpasscc_sc8280xp_resets[] = {
[LPASS_AUDIO_SWR_TX_CGCR] = { 0xc010, 1 },
};
-static struct regmap_config lpasscc_sc8280xp_regmap_config = {
+static const struct regmap_config lpasscc_sc8280xp_regmap_config = {
.reg_bits = 32,
.reg_stride = 4,
.val_bits = 32,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 09/10] clk: sunxi-ng r40: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (7 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-03 11:17 ` Andre Przywara
2024-07-10 19:47 ` Stephen Boyd
2024-07-03 9:50 ` [PATCH 10/10] clk: xilinx: " Javier Carrasco
` (2 subsequent siblings)
11 siblings, 2 replies; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`sun8i_r40_ccu_regmap_config` is not modified and can be declared as
const to move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
index 984ad3f76b18..2f51ceab8016 100644
--- a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
@@ -1292,7 +1292,7 @@ static bool sun8i_r40_ccu_regmap_accessible_reg(struct device *dev,
return false;
}
-static struct regmap_config sun8i_r40_ccu_regmap_config = {
+static const struct regmap_config sun8i_r40_ccu_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 10/10] clk: xilinx: Constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (8 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 09/10] clk: sunxi-ng r40: " Javier Carrasco
@ 2024-07-03 9:50 ` Javier Carrasco
2024-07-08 20:32 ` Stephen Boyd
2024-07-06 22:01 ` (subset) [PATCH 00/10] clk: constify " Bjorn Andersson
2024-07-10 12:41 ` Jerome Brunet
11 siblings, 1 reply; 27+ messages in thread
From: Javier Carrasco @ 2024-07-03 9:50 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
`vcu_settings_regmap_config` is not modified and can be declared as
const to move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/clk/xilinx/xlnx_vcu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/xilinx/xlnx_vcu.c b/drivers/clk/xilinx/xlnx_vcu.c
index 60a3ed7c7263..d983fab12756 100644
--- a/drivers/clk/xilinx/xlnx_vcu.c
+++ b/drivers/clk/xilinx/xlnx_vcu.c
@@ -68,7 +68,7 @@ struct xvcu_device {
struct clk_hw_onecell_data *clk_data;
};
-static struct regmap_config vcu_settings_regmap_config = {
+static const struct regmap_config vcu_settings_regmap_config = {
.name = "regmap",
.reg_bits = 32,
.val_bits = 32,
--
2.40.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: " Javier Carrasco
@ 2024-07-03 10:50 ` Dmitry Baryshkov
0 siblings, 0 replies; 27+ messages in thread
From: Dmitry Baryshkov @ 2024-07-03 10:50 UTC (permalink / raw)
To: Javier Carrasco
Cc: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek, linux-amlogic, linux-clk, linux-arm-kernel,
linux-kernel, linux-arm-msm, linux-sunxi
On Wed, Jul 03, 2024 at 11:50:21AM GMT, Javier Carrasco wrote:
> `lpass_audiocc_sc8280xp_regmap_config` and `lpasscc_sc8280x_regmap_config`
> are not modified and can be declared as const to move their data to a
> read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/clk/qcom/lpasscc-sc8280xp.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 01/10] clk: meson: a1: peripherals: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 01/10] clk: meson: a1: peripherals: Constify " Javier Carrasco
@ 2024-07-03 10:54 ` Neil Armstrong
2024-07-15 12:08 ` [DMARC error][DKIM error] " Dmitry Rokosov
1 sibling, 0 replies; 27+ messages in thread
From: Neil Armstrong @ 2024-07-03 10:54 UTC (permalink / raw)
To: Javier Carrasco, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
On 03/07/2024 11:50, Javier Carrasco wrote:
> `a1_periphs_regmap_cfg` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/clk/meson/a1-peripherals.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/a1-peripherals.c b/drivers/clk/meson/a1-peripherals.c
> index 99b5bc450446..728ad13924ad 100644
> --- a/drivers/clk/meson/a1-peripherals.c
> +++ b/drivers/clk/meson/a1-peripherals.c
> @@ -2183,7 +2183,7 @@ static struct clk_regmap *const a1_periphs_regmaps[] = {
> &dmc_sel2,
> };
>
> -static struct regmap_config a1_periphs_regmap_cfg = {
> +static const struct regmap_config a1_periphs_regmap_cfg = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 02/10] clk: meson: a1: pll: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 02/10] clk: meson: a1: pll: " Javier Carrasco
@ 2024-07-03 10:54 ` Neil Armstrong
2024-07-15 12:10 ` [DMARC error][DKIM error] " Dmitry Rokosov
1 sibling, 0 replies; 27+ messages in thread
From: Neil Armstrong @ 2024-07-03 10:54 UTC (permalink / raw)
To: Javier Carrasco, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
On 03/07/2024 11:50, Javier Carrasco wrote:
> `a1_pll_regmap_cfg` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/clk/meson/a1-pll.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/a1-pll.c b/drivers/clk/meson/a1-pll.c
> index a16e537d139a..4d0a6305b07f 100644
> --- a/drivers/clk/meson/a1-pll.c
> +++ b/drivers/clk/meson/a1-pll.c
> @@ -295,7 +295,7 @@ static struct clk_regmap *const a1_pll_regmaps[] = {
> &hifi_pll,
> };
>
> -static struct regmap_config a1_pll_regmap_cfg = {
> +static const struct regmap_config a1_pll_regmap_cfg = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 03/10] clk: meson: c3: peripherals: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 03/10] clk: meson: c3: peripherals: " Javier Carrasco
@ 2024-07-03 10:54 ` Neil Armstrong
0 siblings, 0 replies; 27+ messages in thread
From: Neil Armstrong @ 2024-07-03 10:54 UTC (permalink / raw)
To: Javier Carrasco, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
On 03/07/2024 11:50, Javier Carrasco wrote:
> `clkc_regmap_config` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/clk/meson/c3-peripherals.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/c3-peripherals.c b/drivers/clk/meson/c3-peripherals.c
> index 56b33d23c317..cfa573262bf1 100644
> --- a/drivers/clk/meson/c3-peripherals.c
> +++ b/drivers/clk/meson/c3-peripherals.c
> @@ -2296,7 +2296,7 @@ static struct clk_regmap *const c3_periphs_clk_regmaps[] = {
> &vapb,
> };
>
> -static struct regmap_config clkc_regmap_config = {
> +static const struct regmap_config clkc_regmap_config = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 04/10] clk: meson: c3: pll: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 04/10] clk: meson: c3: pll: " Javier Carrasco
@ 2024-07-03 10:54 ` Neil Armstrong
0 siblings, 0 replies; 27+ messages in thread
From: Neil Armstrong @ 2024-07-03 10:54 UTC (permalink / raw)
To: Javier Carrasco, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
On 03/07/2024 11:50, Javier Carrasco wrote:
> `clkc_regmap_config` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/clk/meson/c3-pll.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/c3-pll.c b/drivers/clk/meson/c3-pll.c
> index 6d5271c61d14..f09f4f7b46fe 100644
> --- a/drivers/clk/meson/c3-pll.c
> +++ b/drivers/clk/meson/c3-pll.c
> @@ -678,7 +678,7 @@ static struct clk_regmap *const c3_pll_clk_regmaps[] = {
> &mclk1,
> };
>
> -static struct regmap_config clkc_regmap_config = {
> +static const struct regmap_config clkc_regmap_config = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 05/10] clk: meson: s4: peripherals: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 05/10] clk: meson: s4: peripherals: " Javier Carrasco
@ 2024-07-03 10:54 ` Neil Armstrong
0 siblings, 0 replies; 27+ messages in thread
From: Neil Armstrong @ 2024-07-03 10:54 UTC (permalink / raw)
To: Javier Carrasco, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
On 03/07/2024 11:50, Javier Carrasco wrote:
> `clkc_regmap_config` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/clk/meson/s4-peripherals.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c
> index 130c50554290..ba1d531fce4f 100644
> --- a/drivers/clk/meson/s4-peripherals.c
> +++ b/drivers/clk/meson/s4-peripherals.c
> @@ -3747,7 +3747,7 @@ static struct clk_regmap *const s4_periphs_clk_regmaps[] = {
> &s4_adc_extclk_in_gate,
> };
>
> -static struct regmap_config clkc_regmap_config = {
> +static const struct regmap_config clkc_regmap_config = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 06/10] clk: meson: s4: pll: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 06/10] clk: meson: s4: pll: " Javier Carrasco
@ 2024-07-03 10:54 ` Neil Armstrong
0 siblings, 0 replies; 27+ messages in thread
From: Neil Armstrong @ 2024-07-03 10:54 UTC (permalink / raw)
To: Javier Carrasco, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
On 03/07/2024 11:50, Javier Carrasco wrote:
> `clkc_regmap_config` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/clk/meson/s4-pll.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/s4-pll.c b/drivers/clk/meson/s4-pll.c
> index c2afade24f9f..27c10fc499be 100644
> --- a/drivers/clk/meson/s4-pll.c
> +++ b/drivers/clk/meson/s4-pll.c
> @@ -799,7 +799,7 @@ static const struct reg_sequence s4_init_regs[] = {
> { .reg = ANACTRL_MPLL_CTRL0, .def = 0x00000543 },
> };
>
> -static struct regmap_config clkc_regmap_config = {
> +static const struct regmap_config clkc_regmap_config = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 09/10] clk: sunxi-ng r40: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 09/10] clk: sunxi-ng r40: " Javier Carrasco
@ 2024-07-03 11:17 ` Andre Przywara
2024-07-10 16:53 ` Chen-Yu Tsai
2024-07-10 19:47 ` Stephen Boyd
1 sibling, 1 reply; 27+ messages in thread
From: Andre Przywara @ 2024-07-03 11:17 UTC (permalink / raw)
To: Javier Carrasco
Cc: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek, linux-amlogic, linux-clk, linux-arm-kernel,
linux-kernel, linux-arm-msm, linux-sunxi
On Wed, 03 Jul 2024 11:50:22 +0200
Javier Carrasco <javier.carrasco.cruz@gmail.com> wrote:
> `sun8i_r40_ccu_regmap_config` is not modified and can be declared as
> const to move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Looks alright, we indeed don't change it, and the only user takes a const
pointer. Also the compiler seems happy.
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Cheers,
Andre
> ---
> drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
> index 984ad3f76b18..2f51ceab8016 100644
> --- a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
> +++ b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
> @@ -1292,7 +1292,7 @@ static bool sun8i_r40_ccu_regmap_accessible_reg(struct device *dev,
> return false;
> }
>
> -static struct regmap_config sun8i_r40_ccu_regmap_config = {
> +static const struct regmap_config sun8i_r40_ccu_regmap_config = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: (subset) [PATCH 00/10] clk: constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (9 preceding siblings ...)
2024-07-03 9:50 ` [PATCH 10/10] clk: xilinx: " Javier Carrasco
@ 2024-07-06 22:01 ` Bjorn Andersson
2024-07-10 12:41 ` Jerome Brunet
11 siblings, 0 replies; 27+ messages in thread
From: Bjorn Andersson @ 2024-07-06 22:01 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Michal Simek,
Javier Carrasco
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
On Wed, 03 Jul 2024 11:50:13 +0200, Javier Carrasco wrote:
> This series adds the const modifier to the remaining regmap_config
> structs within the clk subsystem that are effectively used as const
> (i.e., only read after their declaration), but kept ad writtable data.
>
>
Applied, thanks!
[08/10] clk: qcom: lpasscc-sc8280xp: Constify struct regmap_config
commit: bd2d330ee608f16a0b93ea753b75c98a1898bdd0
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 10/10] clk: xilinx: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 10/10] clk: xilinx: " Javier Carrasco
@ 2024-07-08 20:32 ` Stephen Boyd
0 siblings, 0 replies; 27+ messages in thread
From: Stephen Boyd @ 2024-07-08 20:32 UTC (permalink / raw)
To: Bjorn Andersson, Chen-Yu Tsai, Javier Carrasco, Jernej Skrabec,
Jerome Brunet, Kevin Hilman, Martin Blumenstingl,
Michael Turquette, Michal Simek, Neil Armstrong, Samuel Holland,
Vladimir Zapolskiy
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
Quoting Javier Carrasco (2024-07-03 02:50:23)
> `vcu_settings_regmap_config` is not modified and can be declared as
> const to move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 07/10] clk: lpc32xx: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 07/10] clk: lpc32xx: " Javier Carrasco
@ 2024-07-08 20:32 ` Stephen Boyd
0 siblings, 0 replies; 27+ messages in thread
From: Stephen Boyd @ 2024-07-08 20:32 UTC (permalink / raw)
To: Bjorn Andersson, Chen-Yu Tsai, Javier Carrasco, Jernej Skrabec,
Jerome Brunet, Kevin Hilman, Martin Blumenstingl,
Michael Turquette, Michal Simek, Neil Armstrong, Samuel Holland,
Vladimir Zapolskiy
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
Quoting Javier Carrasco (2024-07-03 02:50:20)
> `lpc32xx_scb_regmap_config` is not modified and can be declared as const
> to move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: (subset) [PATCH 00/10] clk: constify struct regmap_config
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
` (10 preceding siblings ...)
2024-07-06 22:01 ` (subset) [PATCH 00/10] clk: constify " Bjorn Andersson
@ 2024-07-10 12:41 ` Jerome Brunet
11 siblings, 0 replies; 27+ messages in thread
From: Jerome Brunet @ 2024-07-10 12:41 UTC (permalink / raw)
To: Neil Armstrong, Michael Turquette, Stephen Boyd, Kevin Hilman,
Martin Blumenstingl, Vladimir Zapolskiy, Bjorn Andersson,
Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Michal Simek,
Javier Carrasco
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi
Applied to clk-meson (clk-meson-next), thanks!
[01/10] clk: meson: a1: peripherals: Constify struct regmap_config
https://github.com/BayLibre/clk-meson/commit/4a7665b885b6
[02/10] clk: meson: a1: pll: Constify struct regmap_config
https://github.com/BayLibre/clk-meson/commit/5c6ffe3537d5
[03/10] clk: meson: c3: peripherals: Constify struct regmap_config
https://github.com/BayLibre/clk-meson/commit/af3e4505e6bc
[04/10] clk: meson: c3: pll: Constify struct regmap_config
https://github.com/BayLibre/clk-meson/commit/11c7c1b94059
[05/10] clk: meson: s4: peripherals: Constify struct regmap_config
https://github.com/BayLibre/clk-meson/commit/02cc1df92d75
[06/10] clk: meson: s4: pll: Constify struct regmap_config
https://github.com/BayLibre/clk-meson/commit/3d0e8b6edd6b
Best regards,
--
Jerome
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 09/10] clk: sunxi-ng r40: Constify struct regmap_config
2024-07-03 11:17 ` Andre Przywara
@ 2024-07-10 16:53 ` Chen-Yu Tsai
0 siblings, 0 replies; 27+ messages in thread
From: Chen-Yu Tsai @ 2024-07-10 16:53 UTC (permalink / raw)
To: Stephen Boyd
Cc: Andre Przywara, Javier Carrasco, Neil Armstrong, Jerome Brunet,
Michael Turquette, Kevin Hilman, Martin Blumenstingl,
Vladimir Zapolskiy, Bjorn Andersson, Jernej Skrabec,
Samuel Holland, Michal Simek, linux-amlogic, linux-clk,
linux-arm-kernel, linux-kernel, linux-arm-msm, linux-sunxi
On Wed, Jul 3, 2024 at 7:19 PM Andre Przywara <andre.przywara@arm.com> wrote:
>
> On Wed, 03 Jul 2024 11:50:22 +0200
> Javier Carrasco <javier.carrasco.cruz@gmail.com> wrote:
>
> > `sun8i_r40_ccu_regmap_config` is not modified and can be declared as
> > const to move its data to a read-only section.
> >
> > Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
>
> Looks alright, we indeed don't change it, and the only user takes a const
> pointer. Also the compiler seems happy.
>
> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Stephen, can you merge this one directly? It doesn't look like we'll
have any more stuff to send for this cycle.
ChenYu
> Cheers,
> Andre
>
> > ---
> > drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
> > index 984ad3f76b18..2f51ceab8016 100644
> > --- a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
> > +++ b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c
> > @@ -1292,7 +1292,7 @@ static bool sun8i_r40_ccu_regmap_accessible_reg(struct device *dev,
> > return false;
> > }
> >
> > -static struct regmap_config sun8i_r40_ccu_regmap_config = {
> > +static const struct regmap_config sun8i_r40_ccu_regmap_config = {
> > .reg_bits = 32,
> > .val_bits = 32,
> > .reg_stride = 4,
> >
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 09/10] clk: sunxi-ng r40: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 09/10] clk: sunxi-ng r40: " Javier Carrasco
2024-07-03 11:17 ` Andre Przywara
@ 2024-07-10 19:47 ` Stephen Boyd
1 sibling, 0 replies; 27+ messages in thread
From: Stephen Boyd @ 2024-07-10 19:47 UTC (permalink / raw)
To: Bjorn Andersson, Chen-Yu Tsai, Javier Carrasco, Jernej Skrabec,
Jerome Brunet, Kevin Hilman, Martin Blumenstingl,
Michael Turquette, Michal Simek, Neil Armstrong, Samuel Holland,
Vladimir Zapolskiy
Cc: linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel,
linux-arm-msm, linux-sunxi, Javier Carrasco
Quoting Javier Carrasco (2024-07-03 02:50:22)
> `sun8i_r40_ccu_regmap_config` is not modified and can be declared as
> const to move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [DMARC error][DKIM error] [PATCH 01/10] clk: meson: a1: peripherals: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 01/10] clk: meson: a1: peripherals: Constify " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
@ 2024-07-15 12:08 ` Dmitry Rokosov
1 sibling, 0 replies; 27+ messages in thread
From: Dmitry Rokosov @ 2024-07-15 12:08 UTC (permalink / raw)
To: Javier Carrasco
Cc: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek, linux-amlogic, linux-clk, linux-arm-kernel,
linux-kernel, linux-arm-msm, linux-sunxi
On Wed, Jul 03, 2024 at 11:50:14AM +0200, Javier Carrasco wrote:
> `a1_periphs_regmap_cfg` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
> ---
> drivers/clk/meson/a1-peripherals.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/a1-peripherals.c b/drivers/clk/meson/a1-peripherals.c
> index 99b5bc450446..728ad13924ad 100644
> --- a/drivers/clk/meson/a1-peripherals.c
> +++ b/drivers/clk/meson/a1-peripherals.c
> @@ -2183,7 +2183,7 @@ static struct clk_regmap *const a1_periphs_regmaps[] = {
> &dmc_sel2,
> };
>
> -static struct regmap_config a1_periphs_regmap_cfg = {
> +static const struct regmap_config a1_periphs_regmap_cfg = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
> --
> 2.40.1
>
>
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic
--
Thank you,
Dmitry
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [DMARC error][DKIM error] [PATCH 02/10] clk: meson: a1: pll: Constify struct regmap_config
2024-07-03 9:50 ` [PATCH 02/10] clk: meson: a1: pll: " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
@ 2024-07-15 12:10 ` Dmitry Rokosov
1 sibling, 0 replies; 27+ messages in thread
From: Dmitry Rokosov @ 2024-07-15 12:10 UTC (permalink / raw)
To: Javier Carrasco
Cc: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman, Martin Blumenstingl, Vladimir Zapolskiy,
Bjorn Andersson, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
Michal Simek, linux-amlogic, linux-clk, linux-arm-kernel,
linux-kernel, linux-arm-msm, linux-sunxi
On Wed, Jul 03, 2024 at 11:50:15AM +0200, Javier Carrasco wrote:
> `a1_pll_regmap_cfg` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
> ---
> drivers/clk/meson/a1-pll.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/a1-pll.c b/drivers/clk/meson/a1-pll.c
> index a16e537d139a..4d0a6305b07f 100644
> --- a/drivers/clk/meson/a1-pll.c
> +++ b/drivers/clk/meson/a1-pll.c
> @@ -295,7 +295,7 @@ static struct clk_regmap *const a1_pll_regmaps[] = {
> &hifi_pll,
> };
>
> -static struct regmap_config a1_pll_regmap_cfg = {
> +static const struct regmap_config a1_pll_regmap_cfg = {
> .reg_bits = 32,
> .val_bits = 32,
> .reg_stride = 4,
>
> --
> 2.40.1
>
>
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic
--
Thank you,
Dmitry
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2024-07-15 12:10 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03 9:50 [PATCH 00/10] clk: constify struct regmap_config Javier Carrasco
2024-07-03 9:50 ` [PATCH 01/10] clk: meson: a1: peripherals: Constify " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-15 12:08 ` [DMARC error][DKIM error] " Dmitry Rokosov
2024-07-03 9:50 ` [PATCH 02/10] clk: meson: a1: pll: " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-15 12:10 ` [DMARC error][DKIM error] " Dmitry Rokosov
2024-07-03 9:50 ` [PATCH 03/10] clk: meson: c3: peripherals: " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 04/10] clk: meson: c3: pll: " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 05/10] clk: meson: s4: peripherals: " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 06/10] clk: meson: s4: pll: " Javier Carrasco
2024-07-03 10:54 ` Neil Armstrong
2024-07-03 9:50 ` [PATCH 07/10] clk: lpc32xx: " Javier Carrasco
2024-07-08 20:32 ` Stephen Boyd
2024-07-03 9:50 ` [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: " Javier Carrasco
2024-07-03 10:50 ` Dmitry Baryshkov
2024-07-03 9:50 ` [PATCH 09/10] clk: sunxi-ng r40: " Javier Carrasco
2024-07-03 11:17 ` Andre Przywara
2024-07-10 16:53 ` Chen-Yu Tsai
2024-07-10 19:47 ` Stephen Boyd
2024-07-03 9:50 ` [PATCH 10/10] clk: xilinx: " Javier Carrasco
2024-07-08 20:32 ` Stephen Boyd
2024-07-06 22:01 ` (subset) [PATCH 00/10] clk: constify " Bjorn Andersson
2024-07-10 12:41 ` Jerome Brunet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox