Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 0/4] media: Add devm-managed helper functions for media and V4L2 subsystems
@ 2025-07-23 10:25 Tarang Raval
  2025-07-23 10:25 ` [PATCH 1/4] media: mc: Add devm_media_entity_pads_init() helper Tarang Raval
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Tarang Raval @ 2025-07-23 10:25 UTC (permalink / raw)
  To: sakari.ailus, laurent.pinchart, hverkuil
  Cc: Tarang Raval, Mauro Carvalho Chehab, Ricardo Ribalda,
	Hans de Goede, James Cowgill, Yunke Cao, Tomi Valkeinen,
	Lad Prabhakar, Tommaso Merciai, linux-media, linux-kernel

This patch series introduces devm-managed versions of several commonly used
media and V4L2 initialization functions. These helpers simplify resource
management by leveraging the devres infrastructure, ensuring automatic
cleanup when the associated device is detached or the driver is unloaded.

Tested with IMX219 and OV2735 camera sensors on an i.MX8MP-based platform.

Tarang Raval (4):
  media: mc: Add devm_media_entity_pads_init() helper
  media: v4l: async: Add devm_v4l2_async_register_subdev_sensor() helper
  media: v4l2: subdev: Add devm_v4l2_subdev_init_finalize() helper
  media: v4l2-ctrls: Add devm_v4l2_ctrl_handler_init() helper

 drivers/media/mc/mc-entity.c              | 19 +++++++++++++++++++
 drivers/media/v4l2-core/v4l2-async.c      | 19 +++++++++++++++++++
 drivers/media/v4l2-core/v4l2-ctrls-core.c | 20 ++++++++++++++++++++
 drivers/media/v4l2-core/v4l2-subdev.c     | 18 ++++++++++++++++++
 include/media/media-entity.h              | 20 ++++++++++++++++++++
 include/media/v4l2-async.h                | 18 ++++++++++++++++++
 include/media/v4l2-ctrls.h                | 19 +++++++++++++++++++
 include/media/v4l2-subdev.h               | 17 +++++++++++++++++
 8 files changed, 150 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2025-07-28  5:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23 10:25 [PATCH 0/4] media: Add devm-managed helper functions for media and V4L2 subsystems Tarang Raval
2025-07-23 10:25 ` [PATCH 1/4] media: mc: Add devm_media_entity_pads_init() helper Tarang Raval
2025-07-23 10:25 ` [PATCH 2/4] media: v4l: async: Add devm_v4l2_async_register_subdev_sensor() helper Tarang Raval
2025-07-25  0:13   ` kernel test robot
2025-07-23 10:25 ` [PATCH 3/4] media: v4l2-subdev: Add devm_v4l2_subdev_init_finalize() helper Tarang Raval
2025-07-23 10:25 ` [PATCH 4/4] media: v4l2-ctrls: Add devm_v4l2_ctrl_handler_init() helper Tarang Raval
2025-07-23 12:55 ` [PATCH 0/4] media: Add devm-managed helper functions for media and V4L2 subsystems Laurent Pinchart
2025-07-23 14:08   ` Tarang Raval
2025-07-27 16:48     ` sakari.ailus
2025-07-28  5:45       ` Tarang Raval

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