You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[media] media: rename the function that create pad links
With the new API, a link can be either between two PADs or between an interface and an entity. So, we need to use a better name for the function that create links between two pads. So, rename the such function to media_create_pad_link(). No functional changes. This patch was created via this shell script: for i in $(find drivers/media -name '*.[ch]' -type f) $(find drivers/staging/media -name '*.[ch]' -type f) $(find include/ -name '*.h' -type f) ; do sed s,media_entity_create_link,media_create_pad_link,g <$i >a && mv a $i; done Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Tested-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
@@ -412,16 +412,16 @@ void dvb_create_media_graph(struct dvb_adapter *adap)
|
||||
}
|
||||
|
||||
if (tuner && fe)
|
||||
media_entity_create_link(tuner, 0, fe, 0, 0);
|
||||
media_create_pad_link(tuner, 0, fe, 0, 0);
|
||||
|
||||
if (fe && demux)
|
||||
media_entity_create_link(fe, 1, demux, 0, MEDIA_LNK_FL_ENABLED);
|
||||
media_create_pad_link(fe, 1, demux, 0, MEDIA_LNK_FL_ENABLED);
|
||||
|
||||
if (demux && dvr)
|
||||
media_entity_create_link(demux, 1, dvr, 0, MEDIA_LNK_FL_ENABLED);
|
||||
media_create_pad_link(demux, 1, dvr, 0, MEDIA_LNK_FL_ENABLED);
|
||||
|
||||
if (demux && ca)
|
||||
media_entity_create_link(demux, 1, ca, 0, MEDIA_LNK_FL_ENABLED);
|
||||
media_create_pad_link(demux, 1, ca, 0, MEDIA_LNK_FL_ENABLED);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dvb_create_media_graph);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user