public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v2 0/3] added managed media/v4l2 initialization
@ 2013-05-13  8:34 Andrzej Hajda
  2013-05-13  8:34 ` [PATCH RFC v2 1/3] media: added managed media entity initialization Andrzej Hajda
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andrzej Hajda @ 2013-05-13  8:34 UTC (permalink / raw)
  To: linux-media
  Cc: Laurent Pinchart, Sylwester Nawrocki, Sakari Ailus, Kyungmin Park,
	hj210.choi, sw0312.kim, Andrzej Hajda

This is the 2nd version of managed initializations for media/v4l2.
There are small changes documented in separate patches.

Additionally to advertise this solution I suggest to look at all *_remove
functions in drivers/media/i2c/ tree. After conversion to devm_* versions
most of the *_remove routines could be removed completely.
Below grep for showing all *_remove functions from drivers/media/i2c:
grep -rPzo "(?s)^(\s*)\N*_remove.*?{.*?^\1}" drivers/media/i2c/ --include='*.c'

Andrzej Hajda (3):
  media: added managed media entity initialization
  media: added managed v4l2 control initialization
  media: added managed v4l2 subdevice initialization

 drivers/media/media-entity.c          |   70 +++++++++++++++++++++++++++++++++
 drivers/media/v4l2-core/v4l2-common.c |   10 +++++
 drivers/media/v4l2-core/v4l2-ctrls.c  |   48 ++++++++++++++++++++++
 drivers/media/v4l2-core/v4l2-subdev.c |   52 ++++++++++++++++++++++++
 include/media/media-entity.h          |    6 +++
 include/media/v4l2-common.h           |    2 +
 include/media/v4l2-ctrls.h            |   31 +++++++++++++++
 include/media/v4l2-subdev.h           |    5 +++
 8 files changed, 224 insertions(+)

-- 
1.7.10.4


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

end of thread, other threads:[~2013-05-15 11:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13  8:34 [PATCH RFC v2 0/3] added managed media/v4l2 initialization Andrzej Hajda
2013-05-13  8:34 ` [PATCH RFC v2 1/3] media: added managed media entity initialization Andrzej Hajda
2013-05-13  8:34 ` [PATCH RFC v2 2/3] media: added managed v4l2 control initialization Andrzej Hajda
2013-05-15 11:32   ` Laurent Pinchart
2013-05-13  8:34 ` [PATCH RFC v2 3/3] media: added managed v4l2 subdevice initialization Andrzej Hajda
2013-05-13  9:24   ` Hans Verkuil
2013-05-15  8:29     ` Andrzej Hajda
2013-05-15 11:50       ` Hans Verkuil

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