mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-16 06:31:46 +00:00
[media] uvcvideo: remove pads prefix from uvc_mc_create_pads_links()
The function uvc_mc_create_pads_links() creates entities links but the "pads" prefix is redundant since the driver doesn't handle any other kind of link, so it can be removed. Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
1488eee3b4
commit
552faf4c08
@ -32,7 +32,7 @@ static int uvc_mc_register_entity(struct uvc_video_chain *chain,
|
|||||||
return v4l2_device_register_subdev(&chain->dev->vdev, &entity->subdev);
|
return v4l2_device_register_subdev(&chain->dev->vdev, &entity->subdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int uvc_mc_create_pads_links(struct uvc_video_chain *chain,
|
static int uvc_mc_create_links(struct uvc_video_chain *chain,
|
||||||
struct uvc_entity *entity)
|
struct uvc_entity *entity)
|
||||||
{
|
{
|
||||||
const u32 flags = MEDIA_LNK_FL_ENABLED | MEDIA_LNK_FL_IMMUTABLE;
|
const u32 flags = MEDIA_LNK_FL_ENABLED | MEDIA_LNK_FL_IMMUTABLE;
|
||||||
@ -131,9 +131,9 @@ int uvc_mc_register_entities(struct uvc_video_chain *chain)
|
|||||||
}
|
}
|
||||||
|
|
||||||
list_for_each_entry(entity, &chain->entities, chain) {
|
list_for_each_entry(entity, &chain->entities, chain) {
|
||||||
ret = uvc_mc_create_pads_links(chain, entity);
|
ret = uvc_mc_create_links(chain, entity);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
uvc_printk(KERN_INFO, "Failed to create pads links for "
|
uvc_printk(KERN_INFO, "Failed to create links for "
|
||||||
"entity %u\n", entity->id);
|
"entity %u\n", entity->id);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user