aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-03-03 06:50:42 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:44:13 -0400
commit31ec13561060b748221f4e0404bcc5bf8078ccd0 (patch)
tree27f1e91e9ce54d3e13090779fb95282269612117 /drivers/media/video
parent43053c07fa2935038bfc0e5dbaf417d1d66cd95d (diff)
V4L/DVB (5379): If possible make vars/functions static.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.c2
-rw-r--r--drivers/media/video/ivtv/ivtv-fileops.c2
-rw-r--r--drivers/media/video/ivtv/ivtv-fileops.h1
-rw-r--r--drivers/media/video/ivtv/ivtv-i2c.c7
-rw-r--r--drivers/media/video/ivtv/ivtv-i2c.h2
-rw-r--r--drivers/media/video/ivtv/ivtv-streams.c2
-rw-r--r--drivers/media/video/ivtv/ivtv-video.c8
-rw-r--r--drivers/media/video/ivtv/ivtv-video.h1
8 files changed, 4 insertions, 21 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index 9a8dae811ddf..162a1e8fcdc8 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -121,7 +121,7 @@ static int ivtv_pci_latency = 1;
121 121
122int ivtv_debug = 0; 122int ivtv_debug = 0;
123 123
124int newi2c = -1; 124static int newi2c = -1;
125 125
126module_param_array(tuner, int, &tuner_c, 0644); 126module_param_array(tuner, int, &tuner_c, 0644);
127module_param_array(radio, bool, &radio_c, 0644); 127module_param_array(radio, bool, &radio_c, 0644);
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c
index 90e0f51e635c..2f38bb14ace9 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/drivers/media/video/ivtv/ivtv-fileops.c
@@ -730,7 +730,7 @@ void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end)
730 ivtv_release_stream(s); 730 ivtv_release_stream(s);
731} 731}
732 732
733void ivtv_stop_decoding(struct ivtv_open_id *id, int flags, u64 pts) 733static void ivtv_stop_decoding(struct ivtv_open_id *id, int flags, u64 pts)
734{ 734{
735 struct ivtv *itv = id->itv; 735 struct ivtv *itv = id->itv;
736 struct ivtv_stream *s = &itv->streams[id->type]; 736 struct ivtv_stream *s = &itv->streams[id->type];
diff --git a/drivers/media/video/ivtv/ivtv-fileops.h b/drivers/media/video/ivtv/ivtv-fileops.h
index 1afa950209b8..74a1745fabbc 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.h
+++ b/drivers/media/video/ivtv/ivtv-fileops.h
@@ -30,7 +30,6 @@ unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
30int ivtv_start_capture(struct ivtv_open_id *id); 30int ivtv_start_capture(struct ivtv_open_id *id);
31void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end); 31void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end);
32int ivtv_start_decoding(struct ivtv_open_id *id, int speed); 32int ivtv_start_decoding(struct ivtv_open_id *id, int speed);
33void ivtv_stop_decoding(struct ivtv_open_id *id, int flags, u64 pts);
34void ivtv_mute(struct ivtv *itv); 33void ivtv_mute(struct ivtv *itv);
35void ivtv_unmute(struct ivtv *itv); 34void ivtv_unmute(struct ivtv *itv);
36 35
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c b/drivers/media/video/ivtv/ivtv-i2c.c
index 07c7ed0fe445..696af35e0282 100644
--- a/drivers/media/video/ivtv/ivtv-i2c.c
+++ b/drivers/media/video/ivtv/ivtv-i2c.c
@@ -574,7 +574,7 @@ int ivtv_call_i2c_client(struct ivtv *itv, int addr, unsigned int cmd, void *arg
574 574
575/* Find the i2c device based on the driver ID and return 575/* Find the i2c device based on the driver ID and return
576 its i2c address or -ENODEV if no matching device was found. */ 576 its i2c address or -ENODEV if no matching device was found. */
577int ivtv_i2c_id_addr(struct ivtv *itv, u32 id) 577static int ivtv_i2c_id_addr(struct ivtv *itv, u32 id)
578{ 578{
579 struct i2c_client *client; 579 struct i2c_client *client;
580 int retval = -ENODEV; 580 int retval = -ENODEV;
@@ -681,11 +681,6 @@ int ivtv_saa717x(struct ivtv *itv, unsigned int cmd, void *arg)
681 return ivtv_call_i2c_client(itv, IVTV_SAA717x_I2C_ADDR, cmd, arg); 681 return ivtv_call_i2c_client(itv, IVTV_SAA717x_I2C_ADDR, cmd, arg);
682} 682}
683 683
684int ivtv_msp34xx(struct ivtv *itv, unsigned int cmd, void *arg)
685{
686 return ivtv_call_i2c_client(itv, IVTV_MSP3400_I2C_ADDR, cmd, arg);
687}
688
689int ivtv_upd64031a(struct ivtv *itv, unsigned int cmd, void *arg) 684int ivtv_upd64031a(struct ivtv *itv, unsigned int cmd, void *arg)
690{ 685{
691 return ivtv_call_i2c_client(itv, IVTV_UPD64031A_I2C_ADDR, cmd, arg); 686 return ivtv_call_i2c_client(itv, IVTV_UPD64031A_I2C_ADDR, cmd, arg);
diff --git a/drivers/media/video/ivtv/ivtv-i2c.h b/drivers/media/video/ivtv/ivtv-i2c.h
index 136dd684f4b5..5d210adb5c52 100644
--- a/drivers/media/video/ivtv/ivtv-i2c.h
+++ b/drivers/media/video/ivtv/ivtv-i2c.h
@@ -22,11 +22,9 @@ int ivtv_cx25840(struct ivtv *itv, unsigned int cmd, void *arg);
22int ivtv_saa7115(struct ivtv *itv, unsigned int cmd, void *arg); 22int ivtv_saa7115(struct ivtv *itv, unsigned int cmd, void *arg);
23int ivtv_saa7127(struct ivtv *itv, unsigned int cmd, void *arg); 23int ivtv_saa7127(struct ivtv *itv, unsigned int cmd, void *arg);
24int ivtv_saa717x(struct ivtv *itv, unsigned int cmd, void *arg); 24int ivtv_saa717x(struct ivtv *itv, unsigned int cmd, void *arg);
25int ivtv_msp34xx(struct ivtv *itv, unsigned int cmd, void *arg);
26int ivtv_upd64031a(struct ivtv *itv, unsigned int cmd, void *arg); 25int ivtv_upd64031a(struct ivtv *itv, unsigned int cmd, void *arg);
27int ivtv_upd64083(struct ivtv *itv, unsigned int cmd, void *arg); 26int ivtv_upd64083(struct ivtv *itv, unsigned int cmd, void *arg);
28 27
29int ivtv_i2c_id_addr(struct ivtv *itv, u32 id);
30int ivtv_i2c_hw_addr(struct ivtv *itv, u32 hw); 28int ivtv_i2c_hw_addr(struct ivtv *itv, u32 hw);
31int ivtv_i2c_hw(struct ivtv *itv, u32 hw, unsigned int cmd, void *arg); 29int ivtv_i2c_hw(struct ivtv *itv, u32 hw, unsigned int cmd, void *arg);
32int ivtv_i2c_id(struct ivtv *itv, u32 id, unsigned int cmd, void *arg); 30int ivtv_i2c_id(struct ivtv *itv, u32 id, unsigned int cmd, void *arg);
diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c
index 73a1c933d8f7..01a41a844a30 100644
--- a/drivers/media/video/ivtv/ivtv-streams.c
+++ b/drivers/media/video/ivtv/ivtv-streams.c
@@ -66,7 +66,7 @@ static struct file_operations ivtv_v4l2_dec_fops = {
66 .poll = ivtv_v4l2_dec_poll, 66 .poll = ivtv_v4l2_dec_poll,
67}; 67};
68 68
69struct { 69static struct {
70 const char *name; 70 const char *name;
71 int vfl_type; 71 int vfl_type;
72 int minor_offset; 72 int minor_offset;
diff --git a/drivers/media/video/ivtv/ivtv-video.c b/drivers/media/video/ivtv/ivtv-video.c
index 77e42d13cdee..5858b197d510 100644
--- a/drivers/media/video/ivtv/ivtv-video.c
+++ b/drivers/media/video/ivtv/ivtv-video.c
@@ -85,14 +85,6 @@ void ivtv_set_wss(struct ivtv *itv, int enabled, int mode)
85 ivtv_saa7127(itv, VIDIOC_INT_S_VBI_DATA, &data); 85 ivtv_saa7127(itv, VIDIOC_INT_S_VBI_DATA, &data);
86} 86}
87 87
88void ivtv_encoder_enable(struct ivtv *itv, int enabled)
89{
90 if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) {
91 ivtv_saa7127(itv, enabled ? VIDIOC_STREAMON : VIDIOC_STREAMOFF,
92 &enabled);
93 }
94}
95
96void ivtv_video_set_io(struct ivtv *itv) 88void ivtv_video_set_io(struct ivtv *itv)
97{ 89{
98 struct v4l2_routing route; 90 struct v4l2_routing route;
diff --git a/drivers/media/video/ivtv/ivtv-video.h b/drivers/media/video/ivtv/ivtv-video.h
index 5efedebe317b..c8ade5d3c413 100644
--- a/drivers/media/video/ivtv/ivtv-video.h
+++ b/drivers/media/video/ivtv/ivtv-video.h
@@ -21,5 +21,4 @@ void ivtv_set_wss(struct ivtv *itv, int enabled, int mode);
21void ivtv_set_cc(struct ivtv *itv, int mode, u8 cc1, u8 cc2, u8 cc3, u8 cc4); 21void ivtv_set_cc(struct ivtv *itv, int mode, u8 cc1, u8 cc2, u8 cc3, u8 cc4);
22void ivtv_set_vps(struct ivtv *itv, int enabled, u8 vps1, u8 vps2, u8 vps3, 22void ivtv_set_vps(struct ivtv *itv, int enabled, u8 vps1, u8 vps2, u8 vps3,
23 u8 vps4, u8 vps5); 23 u8 vps4, u8 vps5);
24void ivtv_encoder_enable(struct ivtv *itv, int enabled);
25void ivtv_video_set_io(struct ivtv *itv); 24void ivtv_video_set_io(struct ivtv *itv);