aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/saa7134
diff options
context:
space:
mode:
authorRicardo Ribalda <ricardo.ribalda@gmail.com>2013-11-26 03:31:42 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 05:02:39 -0500
commitf90580ca0133c533763a6cb3e632a21098a382df (patch)
tree05e66bbea641292153c2a78d781d49d866a16379 /drivers/media/pci/saa7134
parentda4a733946aa360e2219ce2d33b8d25ce4aa1959 (diff)
[media] videodev2: Set vb2_rect's width and height as unsigned
As discussed on the media summit 2013, there is no reason for the width and height to be signed. Therefore this patch is an attempt to convert those fields from __s32 to __u32. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> (documentation and smiapp) Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/saa7134')
-rw-r--r--drivers/media/pci/saa7134/saa7134-video.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c
index 36026b1cb3f8..eb472b5b26a0 100644
--- a/drivers/media/pci/saa7134/saa7134-video.c
+++ b/drivers/media/pci/saa7134/saa7134-video.c
@@ -1729,10 +1729,6 @@ static int saa7134_s_crop(struct file *file, void *f, const struct v4l2_crop *cr
1729 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE && 1729 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
1730 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY) 1730 crop->type != V4L2_BUF_TYPE_VIDEO_OVERLAY)
1731 return -EINVAL; 1731 return -EINVAL;
1732 if (crop->c.height < 0)
1733 return -EINVAL;
1734 if (crop->c.width < 0)
1735 return -EINVAL;
1736 1732
1737 if (res_locked(dev, RESOURCE_OVERLAY)) 1733 if (res_locked(dev, RESOURCE_OVERLAY))
1738 return -EBUSY; 1734 return -EBUSY;