[media] v4l: vsp1: remove pads prefix from *_create_pads_links()
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 11 Dec 2015 17:16:32 +0000 (15:16 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:09 +0000 (12:19 -0200)
The functions that create entities links are called *_create_pads_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>
drivers/media/platform/vsp1/vsp1_drv.c
drivers/media/platform/vsp1/vsp1_rpf.c
drivers/media/platform/vsp1/vsp1_rwpf.h
drivers/media/platform/vsp1/vsp1_wpf.c

index 8f995d267646721f0fcca49a45929801b7e7deb7..4209d8615f722e331acbfefbbdd4dde8a9d6ab09 100644 (file)
@@ -261,14 +261,14 @@ static int vsp1_create_entities(struct vsp1_device *vsp1)
        /* Create links. */
        list_for_each_entry(entity, &vsp1->entities, list_dev) {
                if (entity->type == VSP1_ENTITY_LIF) {
-                       ret = vsp1_wpf_create_pads_links(vsp1, entity);
+                       ret = vsp1_wpf_create_links(vsp1, entity);
                        if (ret < 0)
                                goto done;
                        continue;
                }
 
                if (entity->type == VSP1_ENTITY_RPF) {
-                       ret = vsp1_rpf_create_pads_links(vsp1, entity);
+                       ret = vsp1_rpf_create_links(vsp1, entity);
                        if (ret < 0)
                                goto done;
                        continue;
index 847fb6d01a5ad8abf95c11d248fb56e8ab5b8d64..924538223d3ea33478a5bcf7cf562483242d96a0 100644 (file)
@@ -285,13 +285,13 @@ error:
 }
 
 /*
- * vsp1_rpf_create_pads_links_create_pads_links() - RPF pads links creation
+ * vsp1_rpf_create_links() - RPF pads links creation
  * @vsp1: Pointer to VSP1 device
  * @entity: Pointer to VSP1 entity
  *
  * return negative error code or zero on success
  */
-int vsp1_rpf_create_pads_links(struct vsp1_device *vsp1,
+int vsp1_rpf_create_links(struct vsp1_device *vsp1,
                               struct vsp1_entity *entity)
 {
        struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev);
index 6638b3587369346cd1186de5f567d5ccd025e14a..731d36e5258d2552874c83e10ac03964e5dad646 100644 (file)
@@ -50,9 +50,9 @@ static inline struct vsp1_rwpf *to_rwpf(struct v4l2_subdev *subdev)
 struct vsp1_rwpf *vsp1_rpf_create(struct vsp1_device *vsp1, unsigned int index);
 struct vsp1_rwpf *vsp1_wpf_create(struct vsp1_device *vsp1, unsigned int index);
 
-int vsp1_rpf_create_pads_links(struct vsp1_device *vsp1,
+int vsp1_rpf_create_links(struct vsp1_device *vsp1,
                               struct vsp1_entity *entity);
-int vsp1_wpf_create_pads_links(struct vsp1_device *vsp1,
+int vsp1_wpf_create_links(struct vsp1_device *vsp1,
                               struct vsp1_entity *entity);
 
 int vsp1_rwpf_enum_mbus_code(struct v4l2_subdev *subdev,
index 969278bc1d412de31fd15fc909004dfaf60c9c52..cbf514a6582dc799a8c80dac97871243a12cf3e8 100644 (file)
@@ -285,13 +285,13 @@ error:
 }
 
 /*
- * vsp1_wpf_create_pads_links_create_pads_links() - RPF pads links creation
+ * vsp1_wpf_create_links() - RPF pads links creation
  * @vsp1: Pointer to VSP1 device
  * @entity: Pointer to VSP1 entity
  *
  * return negative error code or zero on success
  */
-int vsp1_wpf_create_pads_links(struct vsp1_device *vsp1,
+int vsp1_wpf_create_links(struct vsp1_device *vsp1,
                               struct vsp1_entity *entity)
 {
        struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev);