Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH 0/3] media: v4l: async: add helper API v4l2_async_pad_init_and_register_subdev()
@ 2026-02-10 21:42 Frank Li
  2026-02-10 21:42 ` [PATCH 1/3] " Frank Li
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Frank Li @ 2026-02-10 21:42 UTC (permalink / raw)
  To: Sakari Ailus, Mauro Carvalho Chehab, Michael Riesch,
	Maxime Ripard
  Cc: linux-media, linux-kernel, imx, Frank Li

Add the helper API v4l2_async_pad_init_and_register_subdev(), which
combines media_entity_pads_init(), v4l2_subdev_init_finalize(), and
v4l2_async_register_subdev() into a single call.

Reduce code duplication and simplify error handling in drivers.

Only change dwc and cdns. If agree add API, more driver can be simplified.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Frank Li (3):
      media: v4l: async: add helper API v4l2_async_pad_init_and_register_subdev()
      media: synopsys: Use v4l2_async_pad_init_and_register_subdev() to simplify code
      media: cadence: cdns-csi2rx: Use v4l2_async_pad_init_and_register_subdev() to simplify code

 drivers/media/platform/cadence/cdns-csi2rx.c     | 18 ++++----------
 drivers/media/platform/synopsys/dw-mipi-csi2rx.c | 15 +++---------
 drivers/media/v4l2-core/v4l2-async.c             | 30 ++++++++++++++++++++++++
 include/media/v4l2-async.h                       | 18 ++++++++++++++
 4 files changed, 55 insertions(+), 26 deletions(-)
---
base-commit: bc0bfce7d0f8204e0bbadcee72e87ad9ec105c73
change-id: 20260210-v4l2_init_register-0e6d0adcfa21

Best regards,
--
Frank Li <Frank.Li@nxp.com>


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

end of thread, other threads:[~2026-02-23  8:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10 21:42 [PATCH 0/3] media: v4l: async: add helper API v4l2_async_pad_init_and_register_subdev() Frank Li
2026-02-10 21:42 ` [PATCH 1/3] " Frank Li
2026-02-10 21:42 ` [PATCH 2/3] media: synopsys: Use v4l2_async_pad_init_and_register_subdev() to simplify code Frank Li
2026-02-10 21:42 ` [PATCH 3/3] media: cadence: cdns-csi2rx: " Frank Li
2026-02-20  9:01 ` [PATCH 0/3] media: v4l: async: add helper API v4l2_async_pad_init_and_register_subdev() Michael Riesch
2026-02-20 15:46   ` Frank Li
2026-02-23  8:34     ` Michael Riesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox