* [PATCH 0/6] drm: constify read-only regmap structs
@ 2024-09-25 15:42 Javier Carrasco
2024-09-25 15:42 ` [PATCH 1/6] drm/bridge: dpc3433: Constify struct regmap_config Javier Carrasco
` (8 more replies)
0 siblings, 9 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 15:42 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic, Javier Carrasco
This series adds the const modifier to the remaining regmap_bus and
regmap_config structs under drm/ 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 (6):
drm/bridge: dpc3433: Constify struct regmap_config
drm/fsl-dcu: Constify struct regmap_config
drm/mediatek: dp: Constify struct regmap_config
drm/meson: Constify struct regmap_config
drm/panel: ili9322: Constify struct regmap_bus
drm/sprd: Constify struct regmap_bus
drivers/gpu/drm/bridge/ti-dlpc3433.c | 2 +-
drivers/gpu/drm/fsl-dcu/fsl_tcon.c | 2 +-
drivers/gpu/drm/mediatek/mtk_dp.c | 2 +-
drivers/gpu/drm/meson/meson_drv.c | 2 +-
drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 2 +-
drivers/gpu/drm/sprd/sprd_dsi.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
---
base-commit: 2b7275670032a98cba266bd1b8905f755b3e650f
change-id: 20240925-drm-const-regmap-307f2c358d10
Best regards,
--
Javier Carrasco <javier.carrasco.cruz@gmail.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/6] drm/bridge: dpc3433: Constify struct regmap_config
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
@ 2024-09-25 15:42 ` Javier Carrasco
2024-09-25 15:42 ` [PATCH 2/6] drm/fsl-dcu: " Javier Carrasco
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 15:42 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic, Javier Carrasco
`dlpc_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
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,
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/6] drm/fsl-dcu: Constify struct regmap_config
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
2024-09-25 15:42 ` [PATCH 1/6] drm/bridge: dpc3433: Constify struct regmap_config Javier Carrasco
@ 2024-09-25 15:42 ` Javier Carrasco
2024-09-25 15:42 ` [PATCH 3/6] drm/mediatek: dp: " Javier Carrasco
` (6 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 15:42 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic, Javier Carrasco
`fsl_tcon_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
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,
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/6] drm/mediatek: dp: Constify struct regmap_config
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
2024-09-25 15:42 ` [PATCH 1/6] drm/bridge: dpc3433: Constify struct regmap_config Javier Carrasco
2024-09-25 15:42 ` [PATCH 2/6] drm/fsl-dcu: " Javier Carrasco
@ 2024-09-25 15:42 ` Javier Carrasco
2024-09-25 15:42 ` [PATCH 4/6] drm/meson: " Javier Carrasco
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 15:42 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic, Javier Carrasco
`mtk_dp_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
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,
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/6] drm/meson: Constify struct regmap_config
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
` (2 preceding siblings ...)
2024-09-25 15:42 ` [PATCH 3/6] drm/mediatek: dp: " Javier Carrasco
@ 2024-09-25 15:42 ` Javier Carrasco
2024-09-25 15:42 ` [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus Javier Carrasco
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 15:42 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic, Javier Carrasco
`meson_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
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,
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
` (3 preceding siblings ...)
2024-09-25 15:42 ` [PATCH 4/6] drm/meson: " Javier Carrasco
@ 2024-09-25 15:42 ` Javier Carrasco
2024-09-30 14:28 ` Neil Armstrong
2024-09-25 15:42 ` [PATCH 6/6] drm/sprd: " Javier Carrasco
` (3 subsequent siblings)
8 siblings, 1 reply; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 15:42 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic, Javier Carrasco
`ili9322_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c
index 4a6dcfd781e8..94b7dfef3b5e 100644
--- a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c
+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c
@@ -318,7 +318,7 @@ static int ili9322_regmap_spi_read(void *context, const void *reg,
return spi_write_then_read(spi, buf, 1, val, 1);
}
-static struct regmap_bus ili9322_regmap_bus = {
+static const struct regmap_bus ili9322_regmap_bus = {
.write = ili9322_regmap_spi_write,
.read = ili9322_regmap_spi_read,
.reg_format_endian_default = REGMAP_ENDIAN_BIG,
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/6] drm/sprd: Constify struct regmap_bus
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
` (4 preceding siblings ...)
2024-09-25 15:42 ` [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus Javier Carrasco
@ 2024-09-25 15:42 ` Javier Carrasco
2024-09-26 7:32 ` [PATCH 0/6] drm: constify read-only regmap structs Dmitry Baryshkov
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 15:42 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic, Javier Carrasco
`regmap_txt_io` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
drivers/gpu/drm/sprd/sprd_dsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/sprd/sprd_dsi.c b/drivers/gpu/drm/sprd/sprd_dsi.c
index 0b69c140eab3..44a7a579660f 100644
--- a/drivers/gpu/drm/sprd/sprd_dsi.c
+++ b/drivers/gpu/drm/sprd/sprd_dsi.c
@@ -209,7 +209,7 @@ static int regmap_tst_io_read(void *context, u32 reg, u32 *val)
return 0;
}
-static struct regmap_bus regmap_tst_io = {
+static const struct regmap_bus regmap_tst_io = {
.reg_write = regmap_tst_io_write,
.reg_read = regmap_tst_io_read,
};
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] drm: constify read-only regmap structs
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
` (5 preceding siblings ...)
2024-09-25 15:42 ` [PATCH 6/6] drm/sprd: " Javier Carrasco
@ 2024-09-26 7:32 ` Dmitry Baryshkov
2024-09-26 9:39 ` AngeloGioacchino Del Regno
2024-10-19 14:57 ` Dmitry Baryshkov
8 siblings, 0 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2024-09-26 7:32 UTC (permalink / raw)
To: Javier Carrasco
Cc: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang, dri-devel, linux-kernel,
linux-mediatek, linux-arm-kernel, linux-amlogic
On Wed, Sep 25, 2024 at 05:42:39PM GMT, Javier Carrasco wrote:
> This series adds the const modifier to the remaining regmap_bus and
> regmap_config structs under drm/ 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 (6):
> drm/bridge: dpc3433: Constify struct regmap_config
> drm/fsl-dcu: Constify struct regmap_config
> drm/mediatek: dp: Constify struct regmap_config
> drm/meson: Constify struct regmap_config
> drm/panel: ili9322: Constify struct regmap_bus
> drm/sprd: Constify struct regmap_bus
>
For the series:
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] drm: constify read-only regmap structs
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
` (6 preceding siblings ...)
2024-09-26 7:32 ` [PATCH 0/6] drm: constify read-only regmap structs Dmitry Baryshkov
@ 2024-09-26 9:39 ` AngeloGioacchino Del Regno
2024-10-19 14:57 ` Dmitry Baryshkov
8 siblings, 0 replies; 11+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-09-26 9:39 UTC (permalink / raw)
To: Javier Carrasco, Jagan Teki, Andrzej Hajda, Neil Armstrong,
Robert Foss, Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, Kevin Hilman, Jerome Brunet,
Martin Blumenstingl, Jessica Zhang, Orson Zhai, Baolin Wang,
Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic
Il 25/09/24 17:42, Javier Carrasco ha scritto:
> This series adds the const modifier to the remaining regmap_bus and
> regmap_config structs under drm/ 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>
For the entire series:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> Javier Carrasco (6):
> drm/bridge: dpc3433: Constify struct regmap_config
> drm/fsl-dcu: Constify struct regmap_config
> drm/mediatek: dp: Constify struct regmap_config
> drm/meson: Constify struct regmap_config
> drm/panel: ili9322: Constify struct regmap_bus
> drm/sprd: Constify struct regmap_bus
>
> drivers/gpu/drm/bridge/ti-dlpc3433.c | 2 +-
> drivers/gpu/drm/fsl-dcu/fsl_tcon.c | 2 +-
> drivers/gpu/drm/mediatek/mtk_dp.c | 2 +-
> drivers/gpu/drm/meson/meson_drv.c | 2 +-
> drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 2 +-
> drivers/gpu/drm/sprd/sprd_dsi.c | 2 +-
> 6 files changed, 6 insertions(+), 6 deletions(-)
> ---
> base-commit: 2b7275670032a98cba266bd1b8905f755b3e650f
> change-id: 20240925-drm-const-regmap-307f2c358d10
>
> Best regards,
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus
2024-09-25 15:42 ` [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus Javier Carrasco
@ 2024-09-30 14:28 ` Neil Armstrong
0 siblings, 0 replies; 11+ messages in thread
From: Neil Armstrong @ 2024-09-30 14:28 UTC (permalink / raw)
To: Javier Carrasco, Jagan Teki, Andrzej Hajda, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic
On 25/09/2024 17:42, Javier Carrasco wrote:
> `ili9322_regmap_bus` is not modified and can be declared as const to
> move its data to a read-only section.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c
> index 4a6dcfd781e8..94b7dfef3b5e 100644
> --- a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c
> +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c
> @@ -318,7 +318,7 @@ static int ili9322_regmap_spi_read(void *context, const void *reg,
> return spi_write_then_read(spi, buf, 1, val, 1);
> }
>
> -static struct regmap_bus ili9322_regmap_bus = {
> +static const struct regmap_bus ili9322_regmap_bus = {
> .write = ili9322_regmap_spi_write,
> .read = ili9322_regmap_spi_read,
> .reg_format_endian_default = REGMAP_ENDIAN_BIG,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] drm: constify read-only regmap structs
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
` (7 preceding siblings ...)
2024-09-26 9:39 ` AngeloGioacchino Del Regno
@ 2024-10-19 14:57 ` Dmitry Baryshkov
8 siblings, 0 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2024-10-19 14:57 UTC (permalink / raw)
To: Jagan Teki, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Stefan Agner, Alison Wang, Chun-Kuang Hu,
Philipp Zabel, Matthias Brugger, AngeloGioacchino Del Regno,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Jessica Zhang,
Orson Zhai, Baolin Wang, Chunyan Zhang, Javier Carrasco
Cc: dri-devel, linux-kernel, linux-mediatek, linux-arm-kernel,
linux-amlogic
On Wed, 25 Sep 2024 17:42:39 +0200, Javier Carrasco wrote:
> This series adds the const modifier to the remaining regmap_bus and
> regmap_config structs under drm/ that are effectively used as const
> (i.e., only read after their declaration), but kept ad writtable data.
>
>
Applied to drm-misc-next, thanks!
[1/6] drm/bridge: dpc3433: Constify struct regmap_config
commit: b895a1805e0b01d523afa71818cb97a5d2655fcf
[2/6] drm/fsl-dcu: Constify struct regmap_config
commit: 9239d961ce9d95ec13e241407d0320228e664d68
[3/6] drm/mediatek: dp: Constify struct regmap_config
commit: 02f686d17c4305a0b5e2a9de749664dfe9c0f63e
[4/6] drm/meson: Constify struct regmap_config
commit: 0bcbddb7ef0edb8b4ca994033128e955bb8b1b74
[5/6] drm/panel: ili9322: Constify struct regmap_bus
commit: 6a92271233fb4789f69a9ba9410b23e2e5ab30e2
[6/6] drm/sprd: Constify struct regmap_bus
commit: 420fb223fe6049f5eecac0d28136df5bc5699ea2
Best regards,
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-10-19 14:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 15:42 [PATCH 0/6] drm: constify read-only regmap structs Javier Carrasco
2024-09-25 15:42 ` [PATCH 1/6] drm/bridge: dpc3433: Constify struct regmap_config Javier Carrasco
2024-09-25 15:42 ` [PATCH 2/6] drm/fsl-dcu: " Javier Carrasco
2024-09-25 15:42 ` [PATCH 3/6] drm/mediatek: dp: " Javier Carrasco
2024-09-25 15:42 ` [PATCH 4/6] drm/meson: " Javier Carrasco
2024-09-25 15:42 ` [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus Javier Carrasco
2024-09-30 14:28 ` Neil Armstrong
2024-09-25 15:42 ` [PATCH 6/6] drm/sprd: " Javier Carrasco
2024-09-26 7:32 ` [PATCH 0/6] drm: constify read-only regmap structs Dmitry Baryshkov
2024-09-26 9:39 ` AngeloGioacchino Del Regno
2024-10-19 14:57 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).