dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4
@ 2025-07-08 20:35 Anusha Srivatsa
  2025-07-08 20:35 ` [PATCH 1/6] drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc() Anusha Srivatsa
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Anusha Srivatsa @ 2025-07-08 20:35 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Geert Uytterhoeven, dri-devel, linux-kernel, Anusha Srivatsa

Use the new API devm_drm_panel_alloc() for panel allocations.
A major chunk of driver conversion was sent in a 3 part series
which is already merged. The coccinelle patch that was used to
identify unsafe panel allocations didnt flag about 20 drivers.

Not using any semantic patch for the remaining drivers.
Apart from addressing a part of missing drivers, this series also
does the conversion by not passing explicit type to the helper and
maintaining type safety suggested by Geert.

Link to part 1, 2 and 3 of driver conversion:
https://patchwork.freedesktop.org/series/147082/
https://patchwork.freedesktop.org/series/147157/
https://patchwork.freedesktop.org/series/147246/

Geert's suggestion
https://lore.kernel.org/dri-devel/CAN9Xe3TXZa1nrCLkHadiBkOO=q1ue8Jwc3V13pXcbAc9AFS2-Q@mail.gmail.com/

14 more to go which will be sent once this series gets feedback.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
Anusha Srivatsa (6):
      drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/truly-nt35597: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/tdo-tl070wsh30: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/kd070fhfid015: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/ls043t1le01: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/samsung-s6e63m0: Use refcounted allocation in place of devm_kzalloc()

 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c       | 14 +++++++-------
 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c     | 12 ++++++------
 drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c | 12 ++++++------
 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c        | 13 ++++++-------
 drivers/gpu/drm/panel/panel-truly-nt35597.c         | 10 +++++-----
 drivers/gpu/drm/panel/panel-visionox-g2647fb105.c   | 10 +++++-----
 6 files changed, 35 insertions(+), 36 deletions(-)
---
base-commit: 482c7e296edc0f594e8869a789a40be53c49bd6a
change-id: 20250707-b4-simple-panel-api-convert-july-aac1fbe82b28

Best regards,
-- 
Anusha Srivatsa <asrivats@redhat.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 1/6] drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4 Anusha Srivatsa
@ 2025-07-08 20:35 ` Anusha Srivatsa
  2025-07-09 13:01   ` Maxime Ripard
  2025-07-08 20:35 ` [PATCH 2/6] drm/panel/truly-nt35597: " Anusha Srivatsa
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Anusha Srivatsa @ 2025-07-08 20:35 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Geert Uytterhoeven, dri-devel, linux-kernel, Anusha Srivatsa

Move to using the new API devm_drm_panel_alloc() to allocate the
panel. In the call to the new API, avoid using explicit type and use
__typeof() for more type safety.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
 drivers/gpu/drm/panel/panel-visionox-g2647fb105.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-visionox-g2647fb105.c b/drivers/gpu/drm/panel/panel-visionox-g2647fb105.c
index 413849f7b4dec97e9afa2df2843ef25898ed2549..eac6ec6e71d17285431b1cef3cb46d133f0648d9 100644
--- a/drivers/gpu/drm/panel/panel-visionox-g2647fb105.c
+++ b/drivers/gpu/drm/panel/panel-visionox-g2647fb105.c
@@ -207,9 +207,11 @@ static int visionox_g2647fb105_probe(struct mipi_dsi_device *dsi)
 	struct visionox_g2647fb105 *ctx;
 	int ret;
 
-	ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
-	if (!ctx)
-		return -ENOMEM;
+	ctx = devm_drm_panel_alloc(dev, __typeof(*ctx), panel,
+				   &visionox_g2647fb105_panel_funcs,
+				   DRM_MODE_CONNECTOR_DSI);
+	if (IS_ERR(ctx))
+		return PTR_ERR(ctx);
 
 	ret = devm_regulator_bulk_get_const(dev,
 					    ARRAY_SIZE(visionox_g2647fb105_supplies),
@@ -233,8 +235,6 @@ static int visionox_g2647fb105_probe(struct mipi_dsi_device *dsi)
 
 	ctx->panel.prepare_prev_first = true;
 
-	drm_panel_init(&ctx->panel, dev, &visionox_g2647fb105_panel_funcs,
-		       DRM_MODE_CONNECTOR_DSI);
 	ctx->panel.prepare_prev_first = true;
 
 	ctx->panel.backlight = visionox_g2647fb105_create_backlight(dsi);

-- 
2.48.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/6] drm/panel/truly-nt35597: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4 Anusha Srivatsa
  2025-07-08 20:35 ` [PATCH 1/6] drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc() Anusha Srivatsa
@ 2025-07-08 20:35 ` Anusha Srivatsa
  2025-07-09 13:01   ` Maxime Ripard
  2025-07-08 20:35 ` [PATCH 3/6] drm/panel/tdo-tl070wsh30: " Anusha Srivatsa
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Anusha Srivatsa @ 2025-07-08 20:35 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Geert Uytterhoeven, dri-devel, linux-kernel, Anusha Srivatsa

Move to using the new API devm_drm_panel_alloc() to allocate the
panel. In the call to the new API, avoid using explicit type and use
__typeof() for more type safety.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
 drivers/gpu/drm/panel/panel-truly-nt35597.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c
index d447db912a61ec958a4718ce49454f5f706e41db..eb6c2608e4f1509c9626dcda790aee3f9b21eb8b 100644
--- a/drivers/gpu/drm/panel/panel-truly-nt35597.c
+++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c
@@ -476,8 +476,6 @@ static int truly_nt35597_panel_add(struct truly_nt35597 *ctx)
 	/* dual port */
 	gpiod_set_value(ctx->mode_gpio, 0);
 
-	drm_panel_init(&ctx->panel, dev, &truly_nt35597_drm_funcs,
-		       DRM_MODE_CONNECTOR_DSI);
 	drm_panel_add(&ctx->panel);
 
 	return 0;
@@ -523,10 +521,12 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi)
 		.node = NULL,
 	};
 
-	ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
+	ctx = devm_drm_panel_alloc(dev, __typeof(*ctx), panel,
+				   &truly_nt35597_drm_funcs,
+				   DRM_MODE_CONNECTOR_DSI);
 
-	if (!ctx)
-		return -ENOMEM;
+	if (IS_ERR(ctx))
+		return PTR_ERR(ctx);
 
 	/*
 	 * This device represents itself as one with two input ports which are

-- 
2.48.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 3/6] drm/panel/tdo-tl070wsh30: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4 Anusha Srivatsa
  2025-07-08 20:35 ` [PATCH 1/6] drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc() Anusha Srivatsa
  2025-07-08 20:35 ` [PATCH 2/6] drm/panel/truly-nt35597: " Anusha Srivatsa
@ 2025-07-08 20:35 ` Anusha Srivatsa
  2025-07-09 13:03   ` Maxime Ripard
  2025-07-08 20:35 ` [PATCH 4/6] drm/panel/kd070fhfid015: " Anusha Srivatsa
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Anusha Srivatsa @ 2025-07-08 20:35 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Geert Uytterhoeven, dri-devel, linux-kernel, Anusha Srivatsa

Move to using the new API devm_drm_panel_alloc() to allocate the
panel. In the call to the new API, avoid using explicit type and use
__typeof() for more type safety.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c b/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c
index 227f97f9b136f07c7c7ea8d8fd005261b878e5ca..e87b8de0f0f267bc6b4d4ed3e2dc7feb0250194b 100644
--- a/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c
+++ b/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c
@@ -162,9 +162,6 @@ static int tdo_tl070wsh30_panel_add(struct tdo_tl070wsh30_panel *tdo_tl070wsh30)
 		return err;
 	}
 
-	drm_panel_init(&tdo_tl070wsh30->base, &tdo_tl070wsh30->link->dev,
-		       &tdo_tl070wsh30_panel_funcs, DRM_MODE_CONNECTOR_DSI);
-
 	err = drm_panel_of_backlight(&tdo_tl070wsh30->base);
 	if (err)
 		return err;
@@ -183,10 +180,12 @@ static int tdo_tl070wsh30_panel_probe(struct mipi_dsi_device *dsi)
 	dsi->format = MIPI_DSI_FMT_RGB888;
 	dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM;
 
-	tdo_tl070wsh30 = devm_kzalloc(&dsi->dev, sizeof(*tdo_tl070wsh30),
-				    GFP_KERNEL);
-	if (!tdo_tl070wsh30)
-		return -ENOMEM;
+	tdo_tl070wsh30 = devm_drm_panel_alloc(&dsi->dev, __typeof(*tdo_tl070wsh30),
+					      base, &tdo_tl070wsh30_panel_funcs,
+					      DRM_MODE_CONNECTOR_DSI);
+
+	if (IS_ERR(tdo_tl070wsh30))
+		return PTR_ERR(tdo_tl070wsh30);
 
 	mipi_dsi_set_drvdata(dsi, tdo_tl070wsh30);
 	tdo_tl070wsh30->link = dsi;

-- 
2.48.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 4/6] drm/panel/kd070fhfid015: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4 Anusha Srivatsa
                   ` (2 preceding siblings ...)
  2025-07-08 20:35 ` [PATCH 3/6] drm/panel/tdo-tl070wsh30: " Anusha Srivatsa
@ 2025-07-08 20:35 ` Anusha Srivatsa
  2025-07-09 13:04   ` Maxime Ripard
  2025-07-08 20:35 ` [PATCH 5/6] drm/panel/ls043t1le01: " Anusha Srivatsa
  2025-07-08 20:35 ` [PATCH 6/6] drm/panel/samsung-s6e63m0: " Anusha Srivatsa
  5 siblings, 1 reply; 13+ messages in thread
From: Anusha Srivatsa @ 2025-07-08 20:35 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Geert Uytterhoeven, dri-devel, linux-kernel, Anusha Srivatsa

Move to using the new API devm_drm_panel_alloc() to allocate the
panel. In the call to the new API, avoid using explicit type and use
__typeof() for more type safety.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
 drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c
index c0c95355b74350843d5703f1779d88b04f4337f5..e3d53939ce76a29966b99f18ca54dc16790200de 100644
--- a/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c
+++ b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c
@@ -286,9 +286,6 @@ static int stk_panel_add(struct stk_panel *stk)
 		return ret;
 	}
 
-	drm_panel_init(&stk->base, &stk->dsi->dev, &stk_panel_funcs,
-		       DRM_MODE_CONNECTOR_DSI);
-
 	drm_panel_add(&stk->base);
 
 	return 0;
@@ -303,9 +300,12 @@ static int stk_panel_probe(struct mipi_dsi_device *dsi)
 	dsi->format = MIPI_DSI_FMT_RGB888;
 	dsi->mode_flags = (MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_LPM);
 
-	stk = devm_kzalloc(&dsi->dev, sizeof(*stk), GFP_KERNEL);
-	if (!stk)
-		return -ENOMEM;
+	stk = devm_drm_panel_alloc(&dsi->dev, __typeof(*stk), base,
+				   &stk_panel_funcs,
+				   DRM_MODE_CONNECTOR_DSI);
+
+	if (IS_ERR(stk))
+		return PTR_ERR(stk);
 
 	mipi_dsi_set_drvdata(dsi, stk);
 

-- 
2.48.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 5/6] drm/panel/ls043t1le01: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4 Anusha Srivatsa
                   ` (3 preceding siblings ...)
  2025-07-08 20:35 ` [PATCH 4/6] drm/panel/kd070fhfid015: " Anusha Srivatsa
@ 2025-07-08 20:35 ` Anusha Srivatsa
  2025-07-09 13:04   ` Maxime Ripard
  2025-07-08 20:35 ` [PATCH 6/6] drm/panel/samsung-s6e63m0: " Anusha Srivatsa
  5 siblings, 1 reply; 13+ messages in thread
From: Anusha Srivatsa @ 2025-07-08 20:35 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Geert Uytterhoeven, dri-devel, linux-kernel, Anusha Srivatsa

Move to using the new API devm_drm_panel_alloc() to allocate the
panel. In the call to the new API, avoid using explicit type and use
__typeof() for more type safety.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c b/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
index 36abfa2e65e962af2a08aec3e63ba1077a2c43d4..610f37b844c2d1318ca876385d00f50a3e5410d6 100644
--- a/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
+++ b/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
@@ -199,9 +199,6 @@ static int sharp_nt_panel_add(struct sharp_nt_panel *sharp_nt)
 		gpiod_set_value(sharp_nt->reset_gpio, 0);
 	}
 
-	drm_panel_init(&sharp_nt->base, &sharp_nt->dsi->dev,
-		       &sharp_nt_panel_funcs, DRM_MODE_CONNECTOR_DSI);
-
 	ret = drm_panel_of_backlight(&sharp_nt->base);
 	if (ret)
 		return ret;
@@ -230,9 +227,12 @@ static int sharp_nt_panel_probe(struct mipi_dsi_device *dsi)
 			MIPI_DSI_CLOCK_NON_CONTINUOUS |
 			MIPI_DSI_MODE_NO_EOT_PACKET;
 
-	sharp_nt = devm_kzalloc(&dsi->dev, sizeof(*sharp_nt), GFP_KERNEL);
-	if (!sharp_nt)
-		return -ENOMEM;
+	sharp_nt = devm_drm_panel_alloc(&dsi->dev, __typeof(*sharp_nt), base,
+					&sharp_nt_panel_funcs,
+					DRM_MODE_CONNECTOR_DSI);
+
+	if (IS_ERR(sharp_nt))
+		return PTR_ERR(sharp_nt);
 
 	mipi_dsi_set_drvdata(dsi, sharp_nt);
 

-- 
2.48.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 6/6] drm/panel/samsung-s6e63m0: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4 Anusha Srivatsa
                   ` (4 preceding siblings ...)
  2025-07-08 20:35 ` [PATCH 5/6] drm/panel/ls043t1le01: " Anusha Srivatsa
@ 2025-07-08 20:35 ` Anusha Srivatsa
  2025-07-09 13:05   ` Maxime Ripard
  5 siblings, 1 reply; 13+ messages in thread
From: Anusha Srivatsa @ 2025-07-08 20:35 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter
  Cc: Geert Uytterhoeven, dri-devel, linux-kernel, Anusha Srivatsa

Move to using the new API devm_drm_panel_alloc() to allocate the
panel. In the call to the new API, avoid using explicit type and use
__typeof() for more type safety.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
index ea241c89593b6726e8356c30229e99191c69bf03..562ad06c251f8992b3f28894ce2309913324ef11 100644
--- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
+++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c
@@ -677,9 +677,13 @@ int s6e63m0_probe(struct device *dev, void *trsp,
 	u32 max_brightness;
 	int ret;
 
-	ctx = devm_kzalloc(dev, sizeof(struct s6e63m0), GFP_KERNEL);
-	if (!ctx)
-		return -ENOMEM;
+	ctx = devm_drm_panel_alloc(dev, __typeof(*ctx), panel,
+				   &s6e63m0_drm_funcs,
+				   dsi_mode ? DRM_MODE_CONNECTOR_DSI :
+				   DRM_MODE_CONNECTOR_DPI);
+
+	if (IS_ERR(ctx))
+		return PTR_ERR(ctx);
 
 	ctx->transport_data = trsp;
 	ctx->dsi_mode = dsi_mode;
@@ -712,10 +716,6 @@ int s6e63m0_probe(struct device *dev, void *trsp,
 		return PTR_ERR(ctx->reset_gpio);
 	}
 
-	drm_panel_init(&ctx->panel, dev, &s6e63m0_drm_funcs,
-		       dsi_mode ? DRM_MODE_CONNECTOR_DSI :
-		       DRM_MODE_CONNECTOR_DPI);
-
 	ret = s6e63m0_backlight_register(ctx, max_brightness);
 	if (ret < 0)
 		return ret;

-- 
2.48.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/6] drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 ` [PATCH 1/6] drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc() Anusha Srivatsa
@ 2025-07-09 13:01   ` Maxime Ripard
  0 siblings, 0 replies; 13+ messages in thread
From: Maxime Ripard @ 2025-07-09 13:01 UTC (permalink / raw)
  To: Anusha Srivatsa
  Cc: dri-devel, linux-kernel, David Airlie, Geert Uytterhoeven,
	Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Neil Armstrong,
	Simona Vetter, Thomas Zimmermann

On Tue, 8 Jul 2025 15:35:13 -0500, Anusha Srivatsa wrote:
> Move to using the new API devm_drm_panel_alloc() to allocate the
> panel. In the call to the new API, avoid using explicit type and use
> __typeof() for more type safety.
> 
> Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/6] drm/panel/truly-nt35597: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 ` [PATCH 2/6] drm/panel/truly-nt35597: " Anusha Srivatsa
@ 2025-07-09 13:01   ` Maxime Ripard
  0 siblings, 0 replies; 13+ messages in thread
From: Maxime Ripard @ 2025-07-09 13:01 UTC (permalink / raw)
  To: Anusha Srivatsa
  Cc: dri-devel, linux-kernel, David Airlie, Geert Uytterhoeven,
	Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Neil Armstrong,
	Simona Vetter, Thomas Zimmermann

On Tue, 8 Jul 2025 15:35:14 -0500, Anusha Srivatsa wrote:
> Move to using the new API devm_drm_panel_alloc() to allocate the
> panel. In the call to the new API, avoid using explicit type and use
> __typeof() for more type safety.
> 
> Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 3/6] drm/panel/tdo-tl070wsh30: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 ` [PATCH 3/6] drm/panel/tdo-tl070wsh30: " Anusha Srivatsa
@ 2025-07-09 13:03   ` Maxime Ripard
  0 siblings, 0 replies; 13+ messages in thread
From: Maxime Ripard @ 2025-07-09 13:03 UTC (permalink / raw)
  To: Anusha Srivatsa
  Cc: dri-devel, linux-kernel, David Airlie, Geert Uytterhoeven,
	Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Neil Armstrong,
	Simona Vetter, Thomas Zimmermann

On Tue, 8 Jul 2025 15:35:15 -0500, Anusha Srivatsa wrote:
> Move to using the new API devm_drm_panel_alloc() to allocate the
> panel. In the call to the new API, avoid using explicit type and use
> __typeof() for more type safety.
> 
> Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 4/6] drm/panel/kd070fhfid015: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 ` [PATCH 4/6] drm/panel/kd070fhfid015: " Anusha Srivatsa
@ 2025-07-09 13:04   ` Maxime Ripard
  0 siblings, 0 replies; 13+ messages in thread
From: Maxime Ripard @ 2025-07-09 13:04 UTC (permalink / raw)
  To: Anusha Srivatsa
  Cc: dri-devel, linux-kernel, David Airlie, Geert Uytterhoeven,
	Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Neil Armstrong,
	Simona Vetter, Thomas Zimmermann

On Tue, 8 Jul 2025 15:35:16 -0500, Anusha Srivatsa wrote:
> Move to using the new API devm_drm_panel_alloc() to allocate the
> panel. In the call to the new API, avoid using explicit type and use
> __typeof() for more type safety.
> 
> Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 5/6] drm/panel/ls043t1le01: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 ` [PATCH 5/6] drm/panel/ls043t1le01: " Anusha Srivatsa
@ 2025-07-09 13:04   ` Maxime Ripard
  0 siblings, 0 replies; 13+ messages in thread
From: Maxime Ripard @ 2025-07-09 13:04 UTC (permalink / raw)
  To: Anusha Srivatsa
  Cc: dri-devel, linux-kernel, David Airlie, Geert Uytterhoeven,
	Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Neil Armstrong,
	Simona Vetter, Thomas Zimmermann

On Tue, 8 Jul 2025 15:35:17 -0500, Anusha Srivatsa wrote:
> Move to using the new API devm_drm_panel_alloc() to allocate the
> panel. In the call to the new API, avoid using explicit type and use
> __typeof() for more type safety.
> 
> Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 6/6] drm/panel/samsung-s6e63m0: Use refcounted allocation in place of devm_kzalloc()
  2025-07-08 20:35 ` [PATCH 6/6] drm/panel/samsung-s6e63m0: " Anusha Srivatsa
@ 2025-07-09 13:05   ` Maxime Ripard
  0 siblings, 0 replies; 13+ messages in thread
From: Maxime Ripard @ 2025-07-09 13:05 UTC (permalink / raw)
  To: Anusha Srivatsa
  Cc: dri-devel, linux-kernel, David Airlie, Geert Uytterhoeven,
	Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Neil Armstrong,
	Simona Vetter, Thomas Zimmermann

On Tue, 8 Jul 2025 15:35:18 -0500, Anusha Srivatsa wrote:
> Move to using the new API devm_drm_panel_alloc() to allocate the
> panel. In the call to the new API, avoid using explicit type and use
> __typeof() for more type safety.
> 
> Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-07-09 13:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 20:35 [PATCH 0/6] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part4 Anusha Srivatsa
2025-07-08 20:35 ` [PATCH 1/6] drm/panel/visionox-g2647fb105: Use refcounted allocation in place of devm_kzalloc() Anusha Srivatsa
2025-07-09 13:01   ` Maxime Ripard
2025-07-08 20:35 ` [PATCH 2/6] drm/panel/truly-nt35597: " Anusha Srivatsa
2025-07-09 13:01   ` Maxime Ripard
2025-07-08 20:35 ` [PATCH 3/6] drm/panel/tdo-tl070wsh30: " Anusha Srivatsa
2025-07-09 13:03   ` Maxime Ripard
2025-07-08 20:35 ` [PATCH 4/6] drm/panel/kd070fhfid015: " Anusha Srivatsa
2025-07-09 13:04   ` Maxime Ripard
2025-07-08 20:35 ` [PATCH 5/6] drm/panel/ls043t1le01: " Anusha Srivatsa
2025-07-09 13:04   ` Maxime Ripard
2025-07-08 20:35 ` [PATCH 6/6] drm/panel/samsung-s6e63m0: " Anusha Srivatsa
2025-07-09 13:05   ` Maxime Ripard

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).