Re: [2.6 patch] video/saa7134/: make 2 functions static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 24 October 2007 18:23:14 Adrian Bunk wrote:
> saa7134_buffer_requeue() and set_tvnorm() can become static.
> 
> Signed-off-by: Adrian Bunk <[email protected]>
> 
> ---
> 
>  drivers/media/video/saa7134/saa7134-core.c  |    4 ++--
>  drivers/media/video/saa7134/saa7134-video.c |    2 +-
>  drivers/media/video/saa7134/saa7134.h       |    4 ----
>  3 files changed, 3 insertions(+), 7 deletions(-)
> 
> 47fd0eba0eadebc28eac13b320e8f72879dc785a 
> diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
> index 1a4a244..81ad03b 100644
> --- a/drivers/media/video/saa7134/saa7134-core.c
> +++ b/drivers/media/video/saa7134/saa7134-core.c
> @@ -395,8 +395,8 @@ void saa7134_buffer_timeout(unsigned long data)
>  
>  /* resends a current buffer in queue after resume */
>  
> -int saa7134_buffer_requeue(struct saa7134_dev *dev,
> -			 struct saa7134_dmaqueue *q)
> +static int saa7134_buffer_requeue(struct saa7134_dev *dev,
> +				  struct saa7134_dmaqueue *q)
>  {
>  	struct saa7134_buf *buf, *next;
>  
> diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c
> index 471b927..bd3b303 100644
> --- a/drivers/media/video/saa7134/saa7134-video.c
> +++ b/drivers/media/video/saa7134/saa7134-video.c
> @@ -540,7 +540,7 @@ void res_free(struct saa7134_dev *dev, struct saa7134_fh *fh, unsigned int bits)
>  
>  /* ------------------------------------------------------------------ */
>  
> -void set_tvnorm(struct saa7134_dev *dev, struct saa7134_tvnorm *norm)
> +static void set_tvnorm(struct saa7134_dev *dev, struct saa7134_tvnorm *norm)
>  {
>  
>  	dprintk("set tv norm = %s\n",norm->name);
> diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
> index 28ec680..ac3ce77 100644
> --- a/drivers/media/video/saa7134/saa7134.h
> +++ b/drivers/media/video/saa7134/saa7134.h
> @@ -595,9 +595,6 @@ void saa7134_buffer_next(struct saa7134_dev *dev, struct saa7134_dmaqueue *q);
>  void saa7134_buffer_timeout(unsigned long data);
>  void saa7134_dma_free(struct videobuf_queue *q,struct saa7134_buf *buf);
>  
> -int saa7134_buffer_requeue(struct saa7134_dev *dev,
> -			 struct saa7134_dmaqueue *q);
> -
>  int saa7134_set_dmabits(struct saa7134_dev *dev);
>  
>  extern int (*saa7134_dmasound_init)(struct saa7134_dev *dev);
> @@ -630,7 +627,6 @@ void saa7134_i2c_call_clients(struct saa7134_dev *dev,
>  extern struct video_device saa7134_video_template;
>  extern struct video_device saa7134_radio_template;
>  
> -void set_tvnorm(struct saa7134_dev *dev, struct saa7134_tvnorm *norm);
>  int saa7134_videoport_init(struct saa7134_dev *dev);
>  void saa7134_set_decoder(struct saa7134_dev *dev);
>  
> 
> 

Agreed, 
I was using set_tvnorm, but now I don't use it, so its ok, thanks.
sorry about, saa7134_buffer_requeue it should be static all the time.

Best regards,
	Maxim Levitsky
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux