[media] media: use unsigned for pad index
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 11 Dec 2015 14:23:23 +0000 (12:23 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:06 +0000 (12:19 -0200)
The pad index is unsigned. Replace the occurences of it where
pertinent.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap3isp/ispccdc.c
drivers/media/platform/omap3isp/ispccp2.c
drivers/media/platform/omap3isp/ispcsi2.c
drivers/media/platform/omap3isp/isppreview.c
drivers/media/platform/omap3isp/ispresizer.c
drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
drivers/staging/media/davinci_vpfe/dm365_isif.c
drivers/staging/media/davinci_vpfe/dm365_resizer.c
drivers/staging/media/omap4iss/iss_csi2.c
drivers/staging/media/omap4iss/iss_ipipeif.c
drivers/staging/media/omap4iss/iss_resizer.c

index dae674cd3f74e32414059c4a4aea553ef4b433b8..749462c1af8e9dd21bfcf67abc941498546a2158 100644 (file)
@@ -2513,7 +2513,7 @@ static int ccdc_link_setup(struct media_entity *entity,
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct isp_ccdc_device *ccdc = v4l2_get_subdevdata(sd);
        struct isp_device *isp = to_isp_device(ccdc);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index 0c790b25f6f9bb2c0a10153df4115dc10596dc00..59686dd1bb0a2bfccbab09538bc06184d4d69d5d 100644 (file)
@@ -956,7 +956,7 @@ static int ccp2_link_setup(struct media_entity *entity,
 {
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct isp_ccp2_device *ccp2 = v4l2_get_subdevdata(sd);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index f50f6b305204cb4cc2cfa39520961b1cafcc1989..886f148755b0c9165e13b88d50635249112385a1 100644 (file)
@@ -1144,7 +1144,7 @@ static int csi2_link_setup(struct media_entity *entity,
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct isp_csi2_device *csi2 = v4l2_get_subdevdata(sd);
        struct isp_csi2_ctrl_cfg *ctrl = &csi2->ctrl;
-       int index = local->index;
+       unsigned int index = local->index;
 
        /*
         * The ISP core doesn't support pipelines with multiple video outputs.
index c300cb7219e9ff51cdc5c5fcc68f2885fd8763b7..e15ad4133632b21c1bd113adbe73a0c93d6f0edd 100644 (file)
@@ -2144,7 +2144,7 @@ static int preview_link_setup(struct media_entity *entity,
 {
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct isp_prev_device *prev = v4l2_get_subdevdata(sd);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index cd0a9f6e1fedf8e1cfcfd139ac0d7dc6e30fc976..20b98d876d7edd17a71fb4e92e099c2afceb78a7 100644 (file)
@@ -1623,7 +1623,7 @@ static int resizer_link_setup(struct media_entity *entity,
 {
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct isp_res_device *res = v4l2_get_subdevdata(sd);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index a54c60fce3d5b10bd026d0095ff76bdfbb6a5709..633d6456fdce6b6a7e84cadb6d05fff0b0b2f5c9 100644 (file)
@@ -885,7 +885,7 @@ ipipeif_link_setup(struct media_entity *entity, const struct media_pad *local,
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct vpfe_ipipeif_device *ipipeif = v4l2_get_subdevdata(sd);
        struct vpfe_device *vpfe = to_vpfe_device(ipipeif);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index b35667afb73f61afcd0ddfeda294e480511be9ea..99057892d88d39c7722c0f1ecc210daec6168d71 100644 (file)
@@ -1707,7 +1707,7 @@ isif_link_setup(struct media_entity *entity, const struct media_pad *local,
 {
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct vpfe_isif_device *isif = v4l2_get_subdevdata(sd);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index 669ae3f9791fd351abb9fce41558e0c8271639b5..a91395ce91e1d846b17c68f0e5bc00321d1e7b01 100644 (file)
@@ -1648,7 +1648,7 @@ static int resizer_link_setup(struct media_entity *entity,
        struct vpfe_device *vpfe_dev = to_vpfe_device(resizer);
        u16 ipipeif_source = vpfe_dev->vpfe_ipipeif.output;
        u16 ipipe_source = vpfe_dev->vpfe_ipipe.output;
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index 226366a036619d2ed09ddc0701bf998a0b4ec774..f0fa037ce173f39b0cc2d2b9f97085dd2a950853 100644 (file)
@@ -1170,7 +1170,7 @@ static int csi2_link_setup(struct media_entity *entity,
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct iss_csi2_device *csi2 = v4l2_get_subdevdata(sd);
        struct iss_csi2_ctrl_cfg *ctrl = &csi2->ctrl;
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index c2b5638a0898857aa0f0c35aba6d98130a2a484a..88b22f7f8b133f88128ca5393ac3c750c32cc7cb 100644 (file)
@@ -662,7 +662,7 @@ static int ipipeif_link_setup(struct media_entity *entity,
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct iss_ipipeif_device *ipipeif = v4l2_get_subdevdata(sd);
        struct iss_device *iss = to_iss_device(ipipeif);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))
index fea13ab4041f6bea0326196b9b9053df51be2897..fe7b253bb0d3203f6f9a032e748bb98d7bad4f7e 100644 (file)
@@ -716,7 +716,7 @@ static int resizer_link_setup(struct media_entity *entity,
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct iss_resizer_device *resizer = v4l2_get_subdevdata(sd);
        struct iss_device *iss = to_iss_device(resizer);
-       int index = local->index;
+       unsigned int index = local->index;
 
        /* FIXME: this is actually a hack! */
        if (is_media_entity_v4l2_subdev(remote->entity))