* [PATCH] Fix notify callback prototype
@ 2009-03-15 9:20 Jean Delvare
2009-03-15 9:39 ` Hans Verkuil
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2009-03-15 9:20 UTC (permalink / raw)
To: LMML; +Cc: Hans Verkuil, Trent Piepho
I see the following warning when building the zoran driver:
v4l/zoran_card.c: In function 'zoran_probe':
v4l/zoran_card.c:1243: warning: assignment from incompatible pointer type
Fixing the notify callback prototype solves it.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Trent Piepho <xyzzy@speakeasy.org>
---
linux/drivers/media/video/zoran/zoran_card.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- v4l-dvb.orig/linux/drivers/media/video/zoran/zoran_card.c 2009-03-15 10:09:47.000000000 +0100
+++ v4l-dvb/linux/drivers/media/video/zoran/zoran_card.c 2009-03-15 10:17:26.000000000 +0100
@@ -1197,7 +1197,7 @@ zoran_setup_videocodec (struct zoran *zr
return m;
}
-static int zoran_subdev_notify(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
+static void zoran_subdev_notify(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
{
struct zoran *zr = to_zoran(sd->v4l2_dev);
@@ -1207,7 +1207,6 @@ static int zoran_subdev_notify(struct v4
GPIO(zr, 7, 0);
else if (cmd == BT819_FIFO_RESET_HIGH)
GPIO(zr, 7, 1);
- return 0;
}
/*
--
Jean Delvare
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix notify callback prototype
2009-03-15 9:20 [PATCH] Fix notify callback prototype Jean Delvare
@ 2009-03-15 9:39 ` Hans Verkuil
0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2009-03-15 9:39 UTC (permalink / raw)
To: Jean Delvare; +Cc: LMML, Trent Piepho
On Sunday 15 March 2009 10:20:45 Jean Delvare wrote:
> I see the following warning when building the zoran driver:
> v4l/zoran_card.c: In function 'zoran_probe':
> v4l/zoran_card.c:1243: warning: assignment from incompatible pointer type
>
> Fixing the notify callback prototype solves it.
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Hans Verkuil <hverkuil@xs4all.nl>
> Cc: Trent Piepho <xyzzy@speakeasy.org>
> ---
> linux/drivers/media/video/zoran/zoran_card.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> --- v4l-dvb.orig/linux/drivers/media/video/zoran/zoran_card.c 2009-03-15
> 10:09:47.000000000 +0100 +++
> v4l-dvb/linux/drivers/media/video/zoran/zoran_card.c 2009-03-15
> 10:17:26.000000000 +0100 @@ -1197,7 +1197,7 @@ zoran_setup_videocodec
> (struct zoran *zr
> return m;
> }
>
> -static int zoran_subdev_notify(struct v4l2_subdev *sd, unsigned int cmd,
> void *arg) +static void zoran_subdev_notify(struct v4l2_subdev *sd,
> unsigned int cmd, void *arg) {
> struct zoran *zr = to_zoran(sd->v4l2_dev);
>
> @@ -1207,7 +1207,6 @@ static int zoran_subdev_notify(struct v4
> GPIO(zr, 7, 0);
> else if (cmd == BT819_FIFO_RESET_HIGH)
> GPIO(zr, 7, 1);
> - return 0;
> }
>
> /*
And this fix is also pending in my tree :-)
Regards,
Hans
--
Hans Verkuil - video4linux developer - sponsored by TANDBERG
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-15 9:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-15 9:20 [PATCH] Fix notify callback prototype Jean Delvare
2009-03-15 9:39 ` Hans Verkuil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox