* [2.6 patch] ivtv-yuv.c: make 3 functions static
@ 2008-01-28 22:10 Adrian Bunk
2008-01-28 22:50 ` [v4l-dvb-maintainer] " Hans Verkuil
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2008-01-28 22:10 UTC (permalink / raw)
To: Ian Armstrong, Hans Verkuil, Mauro Carvalho Chehab
Cc: ivtv-devel, linux-kernel, v4l-dvb-maintainer
This patch makes the following needlessly global functions static:
- ivtv_yuv_next_free()
- ivtv_yuv_setup_frame()
- ivtv_yuv_udma_frame()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/media/video/ivtv/ivtv-yuv.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
d73b9df5534f05010ef1c46db1ed2fe28874cfc1
diff --git a/drivers/media/video/ivtv/ivtv-yuv.c b/drivers/media/video/ivtv/ivtv-yuv.c
index 8518348..8fdd67c 100644
--- a/drivers/media/video/ivtv/ivtv-yuv.c
+++ b/drivers/media/video/ivtv/ivtv-yuv.c
@@ -914,7 +914,7 @@ static void ivtv_yuv_init(struct ivtv *itv)
}
/* Get next available yuv buffer on PVR350 */
-void ivtv_yuv_next_free(struct ivtv *itv)
+static void ivtv_yuv_next_free(struct ivtv *itv)
{
int draw, display;
struct yuv_playback_info *yi = &itv->yuv_info;
@@ -937,7 +937,7 @@ void ivtv_yuv_next_free(struct ivtv *itv)
}
/* Set up frame according to ivtv_dma_frame parameters */
-void ivtv_yuv_setup_frame(struct ivtv *itv, struct ivtv_dma_frame *args)
+static void ivtv_yuv_setup_frame(struct ivtv *itv, struct ivtv_dma_frame *args)
{
struct yuv_playback_info *yi = &itv->yuv_info;
u8 frame = yi->draw_frame;
@@ -1042,7 +1042,7 @@ void ivtv_yuv_frame_complete(struct ivtv *itv)
(itv->yuv_info.draw_frame + 1) % IVTV_YUV_BUFFERS);
}
-int ivtv_yuv_udma_frame(struct ivtv *itv, struct ivtv_dma_frame *args)
+static int ivtv_yuv_udma_frame(struct ivtv *itv, struct ivtv_dma_frame *args)
{
DEFINE_WAIT(wait);
int rc = 0;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [v4l-dvb-maintainer] [2.6 patch] ivtv-yuv.c: make 3 functions static
2008-01-28 22:10 [2.6 patch] ivtv-yuv.c: make 3 functions static Adrian Bunk
@ 2008-01-28 22:50 ` Hans Verkuil
2008-01-29 11:22 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2008-01-28 22:50 UTC (permalink / raw)
To: v4l-dvb-maintainer
Cc: Adrian Bunk, Ian Armstrong, Mauro Carvalho Chehab, linux-kernel,
ivtv-devel
On Monday 28 January 2008 23:10:53 Adrian Bunk wrote:
> This patch makes the following needlessly global functions static:
> - ivtv_yuv_next_free()
> - ivtv_yuv_setup_frame()
> - ivtv_yuv_udma_frame()
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Mauro, feel free to merge. Alternatively, I can add it to my v4l-dvb
tree which has some additional patches (will post a PULL request for
that in the next few days).
Regards,
Hans
>
> ---
>
> drivers/media/video/ivtv/ivtv-yuv.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> d73b9df5534f05010ef1c46db1ed2fe28874cfc1
> diff --git a/drivers/media/video/ivtv/ivtv-yuv.c
> b/drivers/media/video/ivtv/ivtv-yuv.c index 8518348..8fdd67c 100644
> --- a/drivers/media/video/ivtv/ivtv-yuv.c
> +++ b/drivers/media/video/ivtv/ivtv-yuv.c
> @@ -914,7 +914,7 @@ static void ivtv_yuv_init(struct ivtv *itv)
> }
>
> /* Get next available yuv buffer on PVR350 */
> -void ivtv_yuv_next_free(struct ivtv *itv)
> +static void ivtv_yuv_next_free(struct ivtv *itv)
> {
> int draw, display;
> struct yuv_playback_info *yi = &itv->yuv_info;
> @@ -937,7 +937,7 @@ void ivtv_yuv_next_free(struct ivtv *itv)
> }
>
> /* Set up frame according to ivtv_dma_frame parameters */
> -void ivtv_yuv_setup_frame(struct ivtv *itv, struct ivtv_dma_frame
> *args) +static void ivtv_yuv_setup_frame(struct ivtv *itv, struct
> ivtv_dma_frame *args) {
> struct yuv_playback_info *yi = &itv->yuv_info;
> u8 frame = yi->draw_frame;
> @@ -1042,7 +1042,7 @@ void ivtv_yuv_frame_complete(struct ivtv *itv)
> (itv->yuv_info.draw_frame + 1) % IVTV_YUV_BUFFERS);
> }
>
> -int ivtv_yuv_udma_frame(struct ivtv *itv, struct ivtv_dma_frame
> *args) +static int ivtv_yuv_udma_frame(struct ivtv *itv, struct
> ivtv_dma_frame *args) {
> DEFINE_WAIT(wait);
> int rc = 0;
>
>
> _______________________________________________
> v4l-dvb-maintainer mailing list
> v4l-dvb-maintainer@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/v4l-dvb-maintainer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [v4l-dvb-maintainer] [2.6 patch] ivtv-yuv.c: make 3 functions static
2008-01-28 22:50 ` [v4l-dvb-maintainer] " Hans Verkuil
@ 2008-01-29 11:22 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2008-01-29 11:22 UTC (permalink / raw)
To: Hans Verkuil
Cc: v4l-dvb-maintainer, Adrian Bunk, Ian Armstrong, linux-kernel,
ivtv-devel
On Mon, 28 Jan 2008 23:50:22 +0100
Hans Verkuil <hverkuil@xs4all.nl> wrote:
> On Monday 28 January 2008 23:10:53 Adrian Bunk wrote:
> > This patch makes the following needlessly global functions static:
> > - ivtv_yuv_next_free()
> > - ivtv_yuv_setup_frame()
> > - ivtv_yuv_udma_frame()
> >
> > Signed-off-by: Adrian Bunk <bunk@kernel.org>
>
> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
>
> Mauro, feel free to merge. Alternatively, I can add it to my v4l-dvb
> tree which has some additional patches (will post a PULL request for
> that in the next few days).
I'll merge it right now. It is easier for me to run a script importing the
entire Adrian patch series ;)
Since I've received the patch directly from Adrian, I've changed your SOB to
reviewed-by.
Cheers,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-29 11:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 22:10 [2.6 patch] ivtv-yuv.c: make 3 functions static Adrian Bunk
2008-01-28 22:50 ` [v4l-dvb-maintainer] " Hans Verkuil
2008-01-29 11:22 ` Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox