[PATCH 00/14] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part5

Anusha Srivatsa posted 14 patches 2 months, 4 weeks ago
drivers/gpu/drm/panel/panel-boe-himax8279d.c          | 11 +++++------
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c        | 10 +++++-----
drivers/gpu/drm/panel/panel-himax-hx83102.c           | 10 +++++-----
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c         | 10 +++++-----
drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c         | 12 ++++++------
drivers/gpu/drm/panel/panel-jdi-lt070me05000.c        | 11 +++++------
drivers/gpu/drm/panel/panel-khadas-ts050.c            | 13 ++++++-------
drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c    | 12 ++++++------
drivers/gpu/drm/panel/panel-lg-sw43408.c              | 10 +++++-----
drivers/gpu/drm/panel/panel-novatek-nt36672a.c        | 10 +++++-----
drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c    | 12 ++++++------
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c  | 12 ++++++------
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 12 ++++++------
drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c       | 11 +++++------
14 files changed, 76 insertions(+), 80 deletions(-)
[PATCH 00/14] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part5
Posted by Anusha Srivatsa 2 months, 4 weeks ago
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.
This series 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/

Link to part 4 that incorporates type safety:
https://patchwork.freedesktop.org/series/151355/

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

This is the final set of drivers.

A total of 86 drivers covered in part 1, 2 and 3 are converted
by passing explicit type and is not type safe. Changes to those
will be addressed in the upcoming series.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
Anusha Srivatsa (14):
      drm/panel/lq101r1sx01:  Use refcounted allocation in place of devm_kzalloc()
      drm/panel/raspberrypi: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/vvx10f034n00: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/osd101t2587-53ts: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/novatek-nt36672a: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/lg-sw43408: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/kd097d04: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/khadas-ts050: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/jdi-lt070me05000: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/lpm102a188a: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/ilitek-ili9882t: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/himax-hx83102: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/boe-tv101wum-nl6: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/boe-himax8279d: Use refcounted allocation in place of devm_kzalloc()

 drivers/gpu/drm/panel/panel-boe-himax8279d.c          | 11 +++++------
 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c        | 10 +++++-----
 drivers/gpu/drm/panel/panel-himax-hx83102.c           | 10 +++++-----
 drivers/gpu/drm/panel/panel-ilitek-ili9882t.c         | 10 +++++-----
 drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c         | 12 ++++++------
 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c        | 11 +++++------
 drivers/gpu/drm/panel/panel-khadas-ts050.c            | 13 ++++++-------
 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c    | 12 ++++++------
 drivers/gpu/drm/panel/panel-lg-sw43408.c              | 10 +++++-----
 drivers/gpu/drm/panel/panel-novatek-nt36672a.c        | 10 +++++-----
 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c    | 12 ++++++------
 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c  | 12 ++++++------
 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 12 ++++++------
 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c       | 11 +++++------
 14 files changed, 76 insertions(+), 80 deletions(-)
---
base-commit: bead8800222768dab1a421206350d530b0c45254
change-id: 20250710-b4-driver-convert-last-part-july-34db91cbdf7a

Best regards,
-- 
Anusha Srivatsa <asrivats@redhat.com>
Re: [PATCH 00/14] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part5
Posted by Maxime Ripard 2 months, 3 weeks ago
On Thu, 10 Jul 2025 23:31:11 -0500, Anusha Srivatsa wrote:
> 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.
> This series does the conversion by not passing explicit type
> to the helper and maintaining type safety suggested by Geert.
> 
> [...]

Applied to misc/kernel.git (drm-misc-next).

Thanks!
Maxime