* [PATCH 0/5] drm: misc: few simple cleanups
@ 2024-09-08 14:21 Krzysztof Kozlowski
2024-09-08 14:21 ` [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits Krzysztof Kozlowski
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-08 14:21 UTC (permalink / raw)
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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek, Krzysztof Kozlowski
No dependencies, trivial patches.
Best regards,
Krzysztof
---
Krzysztof Kozlowski (5):
drm/meson: drop unused staitc dw_hdmi_dwc_write_bits
drm/meson: constify regmap_config
drm/fsl-dcu: constify regmap_config
drm/mediatek: dp: constify regmap_config
drm/bridge: ti-dlpc3433: constify regmap_config
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/meson/meson_dw_hdmi.c | 14 --------------
5 files changed, 4 insertions(+), 18 deletions(-)
---
base-commit: ad40aff1edffeccc412cde93894196dca7bc739e
change-id: 20240908-regmap-config-const-2b6e126feb8b
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits
2024-09-08 14:21 [PATCH 0/5] drm: misc: few simple cleanups Krzysztof Kozlowski
@ 2024-09-08 14:21 ` Krzysztof Kozlowski
2024-09-09 9:04 ` Neil Armstrong
2024-09-15 19:34 ` Martin Blumenstingl
2024-09-08 14:21 ` [PATCH 2/5] drm/meson: constify regmap_config Krzysztof Kozlowski
` (4 subsequent siblings)
5 siblings, 2 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-08 14:21 UTC (permalink / raw)
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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek, Krzysztof Kozlowski
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 <krzysztof.kozlowski@linaro.org>
---
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 */
--
2.43.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/5] drm/meson: constify regmap_config
2024-09-08 14:21 [PATCH 0/5] drm: misc: few simple cleanups Krzysztof Kozlowski
2024-09-08 14:21 ` [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits Krzysztof Kozlowski
@ 2024-09-08 14:21 ` Krzysztof Kozlowski
2024-09-09 9:04 ` Neil Armstrong
2024-09-08 14:21 ` [PATCH 3/5] drm/fsl-dcu: " Krzysztof Kozlowski
` (3 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-08 14:21 UTC (permalink / raw)
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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek, Krzysztof Kozlowski
Mark local static 'struct regmap_config' as const for safer and more
obvious code.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
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] 14+ messages in thread
* [PATCH 3/5] drm/fsl-dcu: constify regmap_config
2024-09-08 14:21 [PATCH 0/5] drm: misc: few simple cleanups Krzysztof Kozlowski
2024-09-08 14:21 ` [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits Krzysztof Kozlowski
2024-09-08 14:21 ` [PATCH 2/5] drm/meson: constify regmap_config Krzysztof Kozlowski
@ 2024-09-08 14:21 ` Krzysztof Kozlowski
2024-09-13 8:20 ` Neil Armstrong
2024-09-08 14:21 ` [PATCH 4/5] drm/mediatek: dp: " Krzysztof Kozlowski
` (2 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-08 14:21 UTC (permalink / raw)
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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek, Krzysztof Kozlowski
Mark local static 'struct regmap_config' as const for safer and more
obvious code.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
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] 14+ messages in thread
* [PATCH 4/5] drm/mediatek: dp: constify regmap_config
2024-09-08 14:21 [PATCH 0/5] drm: misc: few simple cleanups Krzysztof Kozlowski
` (2 preceding siblings ...)
2024-09-08 14:21 ` [PATCH 3/5] drm/fsl-dcu: " Krzysztof Kozlowski
@ 2024-09-08 14:21 ` Krzysztof Kozlowski
2024-09-09 11:07 ` Matthias Brugger
2024-09-11 7:42 ` AngeloGioacchino Del Regno
2024-09-08 14:21 ` [PATCH 5/5] drm/bridge: ti-dlpc3433: " Krzysztof Kozlowski
2024-10-21 12:59 ` (subset) [PATCH 0/5] drm: misc: few simple cleanups Neil Armstrong
5 siblings, 2 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-08 14:21 UTC (permalink / raw)
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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek, Krzysztof Kozlowski
Mark local static 'struct regmap_config' as const for safer and more
obvious code.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
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] 14+ messages in thread
* [PATCH 5/5] drm/bridge: ti-dlpc3433: constify regmap_config
2024-09-08 14:21 [PATCH 0/5] drm: misc: few simple cleanups Krzysztof Kozlowski
` (3 preceding siblings ...)
2024-09-08 14:21 ` [PATCH 4/5] drm/mediatek: dp: " Krzysztof Kozlowski
@ 2024-09-08 14:21 ` Krzysztof Kozlowski
2024-09-13 7:43 ` Neil Armstrong
2024-10-21 12:59 ` (subset) [PATCH 0/5] drm: misc: few simple cleanups Neil Armstrong
5 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-08 14:21 UTC (permalink / raw)
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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek, Krzysztof Kozlowski
Mark local static 'struct regmap_config' as const for safer and more
obvious code.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
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] 14+ messages in thread
* Re: [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits
2024-09-08 14:21 ` [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits Krzysztof Kozlowski
@ 2024-09-09 9:04 ` Neil Armstrong
2024-09-15 19:34 ` Martin Blumenstingl
1 sibling, 0 replies; 14+ messages in thread
From: Neil Armstrong @ 2024-09-09 9:04 UTC (permalink / raw)
To: Krzysztof Kozlowski, 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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek
On 08/09/2024 16:21, Krzysztof Kozlowski wrote:
> 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 <krzysztof.kozlowski@linaro.org>
> ---
> 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 */
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/5] drm/meson: constify regmap_config
2024-09-08 14:21 ` [PATCH 2/5] drm/meson: constify regmap_config Krzysztof Kozlowski
@ 2024-09-09 9:04 ` Neil Armstrong
0 siblings, 0 replies; 14+ messages in thread
From: Neil Armstrong @ 2024-09-09 9:04 UTC (permalink / raw)
To: Krzysztof Kozlowski, 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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek
On 08/09/2024 16:21, Krzysztof Kozlowski wrote:
> Mark local static 'struct regmap_config' as const for safer and more
> obvious code.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> 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,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 4/5] drm/mediatek: dp: constify regmap_config
2024-09-08 14:21 ` [PATCH 4/5] drm/mediatek: dp: " Krzysztof Kozlowski
@ 2024-09-09 11:07 ` Matthias Brugger
2024-09-11 7:42 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 14+ messages in thread
From: Matthias Brugger @ 2024-09-09 11:07 UTC (permalink / raw)
To: Krzysztof Kozlowski, 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,
AngeloGioacchino Del Regno, Jagan Teki, Andrzej Hajda,
Robert Foss, Laurent Pinchart, Jonas Karlman, Jernej Skrabec
Cc: dri-devel, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek
On 08/09/2024 16:21, Krzysztof Kozlowski wrote:
> Mark local static 'struct regmap_config' as const for safer and more
> obvious code.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Matthias Brugger <matthias.bgg@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,
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 4/5] drm/mediatek: dp: constify regmap_config
2024-09-08 14:21 ` [PATCH 4/5] drm/mediatek: dp: " Krzysztof Kozlowski
2024-09-09 11:07 ` Matthias Brugger
@ 2024-09-11 7:42 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 14+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-09-11 7:42 UTC (permalink / raw)
To: Krzysztof Kozlowski, 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,
Jagan Teki, Andrzej Hajda, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec
Cc: dri-devel, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek
Il 08/09/24 16:21, Krzysztof Kozlowski ha scritto:
> Mark local static 'struct regmap_config' as const for safer and more
> obvious code.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 5/5] drm/bridge: ti-dlpc3433: constify regmap_config
2024-09-08 14:21 ` [PATCH 5/5] drm/bridge: ti-dlpc3433: " Krzysztof Kozlowski
@ 2024-09-13 7:43 ` Neil Armstrong
0 siblings, 0 replies; 14+ messages in thread
From: Neil Armstrong @ 2024-09-13 7:43 UTC (permalink / raw)
To: Krzysztof Kozlowski, 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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek
On 08/09/2024 16:21, Krzysztof Kozlowski wrote:
> Mark local static 'struct regmap_config' as const for safer and more
> obvious code.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> 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,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/5] drm/fsl-dcu: constify regmap_config
2024-09-08 14:21 ` [PATCH 3/5] drm/fsl-dcu: " Krzysztof Kozlowski
@ 2024-09-13 8:20 ` Neil Armstrong
0 siblings, 0 replies; 14+ messages in thread
From: Neil Armstrong @ 2024-09-13 8:20 UTC (permalink / raw)
To: Krzysztof Kozlowski, 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, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek
On 08/09/2024 16:21, Krzysztof Kozlowski wrote:
> Mark local static 'struct regmap_config' as const for safer and more
> obvious code.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> 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,
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits
2024-09-08 14:21 ` [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits Krzysztof Kozlowski
2024-09-09 9:04 ` Neil Armstrong
@ 2024-09-15 19:34 ` Martin Blumenstingl
1 sibling, 0 replies; 14+ messages in thread
From: Martin Blumenstingl @ 2024-09-15 19:34 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Neil Armstrong, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Kevin Hilman,
Jerome Brunet, 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, dri-devel, linux-amlogic,
linux-arm-kernel, linux-kernel, linux-mediatek
On Sun, Sep 8, 2024 at 4:21 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> 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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
maybe s/staitc/static/ can be applied to $SUBJECT when applying this patch
Best regards,
Martin
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: (subset) [PATCH 0/5] drm: misc: few simple cleanups
2024-09-08 14:21 [PATCH 0/5] drm: misc: few simple cleanups Krzysztof Kozlowski
` (4 preceding siblings ...)
2024-09-08 14:21 ` [PATCH 5/5] drm/bridge: ti-dlpc3433: " Krzysztof Kozlowski
@ 2024-10-21 12:59 ` Neil Armstrong
5 siblings, 0 replies; 14+ messages in thread
From: Neil Armstrong @ 2024-10-21 12:59 UTC (permalink / raw)
To: 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, Krzysztof Kozlowski
Cc: dri-devel, linux-amlogic, linux-arm-kernel, linux-kernel,
linux-mediatek
Hi,
On Sun, 08 Sep 2024 16:21:30 +0200, Krzysztof Kozlowski wrote:
> No dependencies, trivial patches.
>
> Best regards,
> Krzysztof
>
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/d9c12481f980bdad9cf6fdb742e49c5b50622795
[2/5] drm/meson: constify regmap_config
(no commit info)
[5/5] drm/bridge: ti-dlpc3433: constify regmap_config
(no commit info)
--
Neil
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-10-21 13:17 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-08 14:21 [PATCH 0/5] drm: misc: few simple cleanups Krzysztof Kozlowski
2024-09-08 14:21 ` [PATCH 1/5] drm/meson: drop unused staitc dw_hdmi_dwc_write_bits Krzysztof Kozlowski
2024-09-09 9:04 ` Neil Armstrong
2024-09-15 19:34 ` Martin Blumenstingl
2024-09-08 14:21 ` [PATCH 2/5] drm/meson: constify regmap_config Krzysztof Kozlowski
2024-09-09 9:04 ` Neil Armstrong
2024-09-08 14:21 ` [PATCH 3/5] drm/fsl-dcu: " Krzysztof Kozlowski
2024-09-13 8:20 ` Neil Armstrong
2024-09-08 14:21 ` [PATCH 4/5] drm/mediatek: dp: " Krzysztof Kozlowski
2024-09-09 11:07 ` Matthias Brugger
2024-09-11 7:42 ` AngeloGioacchino Del Regno
2024-09-08 14:21 ` [PATCH 5/5] drm/bridge: ti-dlpc3433: " Krzysztof Kozlowski
2024-09-13 7:43 ` Neil Armstrong
2024-10-21 12:59 ` (subset) [PATCH 0/5] drm: misc: few simple cleanups Neil Armstrong
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).