aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/bt8xx/dst.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-05 12:06:31 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:03 -0500
commitb00ef4b8d8c29bfb5f6f92ee60bc04b604f36ef2 (patch)
tree886bfb8712780da4447dc8a513b95ac130168608 /drivers/media/dvb/bt8xx/dst.c
parentc80296d755df29167deafa53e612644a95b40c6e (diff)
V4L/DVB (6569): bt8xx/dst.c: make code static
This patch makes the following needlessly global code static: - dst_gpio_outb() - dst_gpio_inb() - rdc_8820_reset() - dst_pio_enable() - dst_command() - struct tuner_list[] Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx/dst.c')
-rw-r--r--drivers/media/dvb/bt8xx/dst.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c
index b7a17e69ca4d..307ff35bdf13 100644
--- a/drivers/media/dvb/bt8xx/dst.c
+++ b/drivers/media/dvb/bt8xx/dst.c
@@ -71,6 +71,7 @@ MODULE_PARM_DESC(dst_algo, "tuning algo: default is 0=(SW), 1=(HW)");
71 } \ 71 } \
72} while(0) 72} while(0)
73 73
74static int dst_command(struct dst_state *state, u8 *data, u8 len);
74 75
75static void dst_packsize(struct dst_state *state, int psize) 76static void dst_packsize(struct dst_state *state, int psize)
76{ 77{
@@ -80,7 +81,8 @@ static void dst_packsize(struct dst_state *state, int psize)
80 bt878_device_control(state->bt, DST_IG_TS, &bits); 81 bt878_device_control(state->bt, DST_IG_TS, &bits);
81} 82}
82 83
83int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb, u32 outhigh, int delay) 84static int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb,
85 u32 outhigh, int delay)
84{ 86{
85 union dst_gpio_packet enb; 87 union dst_gpio_packet enb;
86 union dst_gpio_packet bits; 88 union dst_gpio_packet bits;
@@ -109,9 +111,8 @@ int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb, u32 outhigh, int
109 111
110 return 0; 112 return 0;
111} 113}
112EXPORT_SYMBOL(dst_gpio_outb);
113 114
114int dst_gpio_inb(struct dst_state *state, u8 *result) 115static int dst_gpio_inb(struct dst_state *state, u8 *result)
115{ 116{
116 union dst_gpio_packet rd_packet; 117 union dst_gpio_packet rd_packet;
117 int err; 118 int err;
@@ -125,7 +126,6 @@ int dst_gpio_inb(struct dst_state *state, u8 *result)
125 126
126 return 0; 127 return 0;
127} 128}
128EXPORT_SYMBOL(dst_gpio_inb);
129 129
130int rdc_reset_state(struct dst_state *state) 130int rdc_reset_state(struct dst_state *state)
131{ 131{
@@ -145,7 +145,7 @@ int rdc_reset_state(struct dst_state *state)
145} 145}
146EXPORT_SYMBOL(rdc_reset_state); 146EXPORT_SYMBOL(rdc_reset_state);
147 147
148int rdc_8820_reset(struct dst_state *state) 148static int rdc_8820_reset(struct dst_state *state)
149{ 149{
150 dprintk(verbose, DST_DEBUG, 1, "Resetting DST"); 150 dprintk(verbose, DST_DEBUG, 1, "Resetting DST");
151 if (dst_gpio_outb(state, RDC_8820_RESET, RDC_8820_RESET, 0, NO_DELAY) < 0) { 151 if (dst_gpio_outb(state, RDC_8820_RESET, RDC_8820_RESET, 0, NO_DELAY) < 0) {
@@ -160,9 +160,8 @@ int rdc_8820_reset(struct dst_state *state)
160 160
161 return 0; 161 return 0;
162} 162}
163EXPORT_SYMBOL(rdc_8820_reset);
164 163
165int dst_pio_enable(struct dst_state *state) 164static int dst_pio_enable(struct dst_state *state)
166{ 165{
167 if (dst_gpio_outb(state, ~0, RDC_8820_PIO_0_ENABLE, 0, NO_DELAY) < 0) { 166 if (dst_gpio_outb(state, ~0, RDC_8820_PIO_0_ENABLE, 0, NO_DELAY) < 0) {
168 dprintk(verbose, DST_ERROR, 1, "dst_gpio_outb ERROR !"); 167 dprintk(verbose, DST_ERROR, 1, "dst_gpio_outb ERROR !");
@@ -172,7 +171,6 @@ int dst_pio_enable(struct dst_state *state)
172 171
173 return 0; 172 return 0;
174} 173}
175EXPORT_SYMBOL(dst_pio_enable);
176 174
177int dst_pio_disable(struct dst_state *state) 175int dst_pio_disable(struct dst_state *state)
178{ 176{
@@ -611,7 +609,7 @@ static int dst_type_print(struct dst_state *state, u8 type)
611 return 0; 609 return 0;
612} 610}
613 611
614struct tuner_types tuner_list[] = { 612static struct tuner_types tuner_list[] = {
615 { 613 {
616 .tuner_type = TUNER_TYPE_L64724, 614 .tuner_type = TUNER_TYPE_L64724,
617 .tuner_name = "L 64724", 615 .tuner_name = "L 64724",
@@ -1224,7 +1222,7 @@ static int dst_probe(struct dst_state *state)
1224 return 0; 1222 return 0;
1225} 1223}
1226 1224
1227int dst_command(struct dst_state *state, u8 *data, u8 len) 1225static int dst_command(struct dst_state *state, u8 *data, u8 len)
1228{ 1226{
1229 u8 reply; 1227 u8 reply;
1230 1228
@@ -1287,7 +1285,6 @@ error:
1287 return -EIO; 1285 return -EIO;
1288 1286
1289} 1287}
1290EXPORT_SYMBOL(dst_command);
1291 1288
1292static int dst_get_signal(struct dst_state *state) 1289static int dst_get_signal(struct dst_state *state)
1293{ 1290{