diff options
author | Márton Németh <nm127@freemail.hu> | 2010-01-23 01:58:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:48 -0500 |
commit | db1b72650d22b8ac3ce56aa90c4fe1314f1876cb (patch) | |
tree | c34a65724a663b877532e3d5037dc5eb78668455 /drivers | |
parent | 26ee91efd941ea7fd40f6ee004f2f4d72f334564 (diff) |
V4L/DVB: zoran: match parameter signedness of g_input_status
The second parameter of g_input_status operation in <media/v4l2-subdev.h>
is unsigned so also call it with unsigned paramter.
This will remove the following sparse warning (see "make C=1"):
* incorrect type in argument 2 (different signedness)
expected unsigned int [usertype] *status
got int *<noident>
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/zoran/zoran_device.c | 3 | ||||
-rw-r--r-- | drivers/media/video/zoran/zoran_driver.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/zoran/zoran_device.c b/drivers/media/video/zoran/zoran_device.c index f6c2fb4fc3b4..d68da9f793c7 100644 --- a/drivers/media/video/zoran/zoran_device.c +++ b/drivers/media/video/zoran/zoran_device.c | |||
@@ -1196,7 +1196,8 @@ zoran_reap_stat_com (struct zoran *zr) | |||
1196 | static void zoran_restart(struct zoran *zr) | 1196 | static void zoran_restart(struct zoran *zr) |
1197 | { | 1197 | { |
1198 | /* Now the stat_comm buffer is ready for restart */ | 1198 | /* Now the stat_comm buffer is ready for restart */ |
1199 | int status = 0, mode; | 1199 | unsigned int status = 0; |
1200 | int mode; | ||
1200 | 1201 | ||
1201 | if (zr->codec_mode == BUZ_MODE_MOTION_COMPRESS) { | 1202 | if (zr->codec_mode == BUZ_MODE_MOTION_COMPRESS) { |
1202 | decoder_call(zr, video, g_input_status, &status); | 1203 | decoder_call(zr, video, g_input_status, &status); |
diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c index 0d1e8710a322..ec41303544e5 100644 --- a/drivers/media/video/zoran/zoran_driver.c +++ b/drivers/media/video/zoran/zoran_driver.c | |||
@@ -1444,7 +1444,7 @@ zoran_set_norm (struct zoran *zr, | |||
1444 | } | 1444 | } |
1445 | 1445 | ||
1446 | if (norm == V4L2_STD_ALL) { | 1446 | if (norm == V4L2_STD_ALL) { |
1447 | int status = 0; | 1447 | unsigned int status = 0; |
1448 | v4l2_std_id std = 0; | 1448 | v4l2_std_id std = 0; |
1449 | 1449 | ||
1450 | decoder_call(zr, video, querystd, &std); | 1450 | decoder_call(zr, video, querystd, &std); |