[media] media: Amend media graph walk API by init and cleanup functions
authorSakari Ailus <sakari.ailus@iki.fi>
Wed, 16 Dec 2015 13:32:22 +0000 (11:32 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:18 +0000 (12:19 -0200)
commite03d220336dd69292370393f5eee98ac17eda308
tree2815c164379aca3f8b937a5c44d3799b6b5d2f7d
parent5dd8775dc6b480f67be11108d7cd798fba724cab
[media] media: Amend media graph walk API by init and cleanup functions

Add media_entity_graph_walk_init() and media_entity_graph_walk_cleanup()
functions in order to dynamically allocate memory for the graph. This is
not done in media_entity_graph_walk_start() as there are situations where
e.g. correct error handling, that itself may not fail, requires successful
graph walk.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c
include/media/media-entity.h