diff options
author | Márton Németh <nm127@freemail.hu> | 2010-02-24 15:13:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:44:09 -0400 |
commit | e26b31449142a18512b57dbea515af234992ba7c (patch) | |
tree | f3918a70f6ed82a04627517605d5377a047ad836 /drivers/media/video/sh_mobile_ceu_camera.c | |
parent | 02512fe33e9162713cd522937aabc81fcd97ad74 (diff) |
V4L/DVB: The first two parameters of soc_camera_limit_side() are usually pointers to struct v4l2_rect elements. They are signed, so adjust the prototype accordingly
This will remove the following sparse warning (see "make C=1"):
* incorrect type in argument 1 (different signedness)
expected unsigned int *start
got signed int *<noident>
as well as a couple more signedness mismatches.
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/sh_mobile_ceu_camera.c')
-rw-r--r-- | drivers/media/video/sh_mobile_ceu_camera.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index 1ad980f8e77..7a229ebe692 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c | |||
@@ -1041,13 +1041,13 @@ static int client_s_crop(struct v4l2_subdev *sd, struct v4l2_crop *crop, | |||
1041 | */ | 1041 | */ |
1042 | if (!memcmp(rect, cam_rect, sizeof(*rect))) { | 1042 | if (!memcmp(rect, cam_rect, sizeof(*rect))) { |
1043 | /* Even if camera S_CROP failed, but camera rectangle matches */ | 1043 | /* Even if camera S_CROP failed, but camera rectangle matches */ |
1044 | dev_dbg(dev, "Camera S_CROP successful for %ux%u@%u:%u\n", | 1044 | dev_dbg(dev, "Camera S_CROP successful for %dx%d@%d:%d\n", |
1045 | rect->width, rect->height, rect->left, rect->top); | 1045 | rect->width, rect->height, rect->left, rect->top); |
1046 | return 0; | 1046 | return 0; |
1047 | } | 1047 | } |
1048 | 1048 | ||
1049 | /* Try to fix cropping, that camera hasn't managed to set */ | 1049 | /* Try to fix cropping, that camera hasn't managed to set */ |
1050 | dev_geo(dev, "Fix camera S_CROP for %ux%u@%u:%u to %ux%u@%u:%u\n", | 1050 | dev_geo(dev, "Fix camera S_CROP for %dx%d@%d:%d to %dx%d@%d:%d\n", |
1051 | cam_rect->width, cam_rect->height, | 1051 | cam_rect->width, cam_rect->height, |
1052 | cam_rect->left, cam_rect->top, | 1052 | cam_rect->left, cam_rect->top, |
1053 | rect->width, rect->height, rect->left, rect->top); | 1053 | rect->width, rect->height, rect->left, rect->top); |
@@ -1103,7 +1103,7 @@ static int client_s_crop(struct v4l2_subdev *sd, struct v4l2_crop *crop, | |||
1103 | 1103 | ||
1104 | v4l2_subdev_call(sd, video, s_crop, cam_crop); | 1104 | v4l2_subdev_call(sd, video, s_crop, cam_crop); |
1105 | ret = client_g_rect(sd, cam_rect); | 1105 | ret = client_g_rect(sd, cam_rect); |
1106 | dev_geo(dev, "Camera S_CROP %d for %ux%u@%u:%u\n", ret, | 1106 | dev_geo(dev, "Camera S_CROP %d for %dx%d@%d:%d\n", ret, |
1107 | cam_rect->width, cam_rect->height, | 1107 | cam_rect->width, cam_rect->height, |
1108 | cam_rect->left, cam_rect->top); | 1108 | cam_rect->left, cam_rect->top); |
1109 | } | 1109 | } |
@@ -1117,7 +1117,7 @@ static int client_s_crop(struct v4l2_subdev *sd, struct v4l2_crop *crop, | |||
1117 | *cam_rect = cap.bounds; | 1117 | *cam_rect = cap.bounds; |
1118 | v4l2_subdev_call(sd, video, s_crop, cam_crop); | 1118 | v4l2_subdev_call(sd, video, s_crop, cam_crop); |
1119 | ret = client_g_rect(sd, cam_rect); | 1119 | ret = client_g_rect(sd, cam_rect); |
1120 | dev_geo(dev, "Camera S_CROP %d for max %ux%u@%u:%u\n", ret, | 1120 | dev_geo(dev, "Camera S_CROP %d for max %dx%d@%d:%d\n", ret, |
1121 | cam_rect->width, cam_rect->height, | 1121 | cam_rect->width, cam_rect->height, |
1122 | cam_rect->left, cam_rect->top); | 1122 | cam_rect->left, cam_rect->top); |
1123 | } | 1123 | } |