Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 829de29b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] media: use unsigned for pad index



The pad index is unsigned. Replace the occurences of it where
pertinent.

Suggested-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 1fc25d30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))
+1 −1
Original line number Diff line number Diff line
@@ -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))
+1 −1
Original line number Diff line number Diff line
@@ -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.
+1 −1
Original line number Diff line number Diff line
@@ -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))
+1 −1
Original line number Diff line number Diff line
@@ -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))
Loading