aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda1004x.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-08-08 08:10:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 10:53:24 -0400
commitc10d14d62d7b7596fd5c7bb8aad3f2b56f8640e6 (patch)
treef66723500fbc0414742f14411cd64dd6d9a336a0 /drivers/media/dvb/frontends/tda1004x.c
parent13fef9335f4fe2a73e1733f8807e69711736faef (diff)
V4L/DVB (4384): Remove remaining static function calls
Rewrote _write() calls to use write() op. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda1004x.c')
-rw-r--r--drivers/media/dvb/frontends/tda1004x.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/tda1004x.c b/drivers/media/dvb/frontends/tda1004x.c
index 59a2ed614fca..478d97735407 100644
--- a/drivers/media/dvb/frontends/tda1004x.c
+++ b/drivers/media/dvb/frontends/tda1004x.c
@@ -579,11 +579,14 @@ static int tda1004x_decode_fec(int tdafec)
579 return -1; 579 return -1;
580} 580}
581 581
582int tda1004x_write_byte(struct dvb_frontend* fe, int reg, int data) 582int tda1004x_write(struct dvb_frontend* fe, u8 *buf, int len)
583{ 583{
584 struct tda1004x_state* state = fe->demodulator_priv; 584 struct tda1004x_state* state = fe->demodulator_priv;
585 585
586 return tda1004x_write_byteI(state, reg, data); 586 if (len != 2)
587 return -EINVAL;
588
589 return tda1004x_write_byteI(state, buf[0], buf[1]);
587} 590}
588 591
589static int tda10045_init(struct dvb_frontend* fe) 592static int tda10045_init(struct dvb_frontend* fe)
@@ -1192,7 +1195,13 @@ static int tda1004x_get_tune_settings(struct dvb_frontend* fe, struct dvb_fronte
1192 return 0; 1195 return 0;
1193} 1196}
1194 1197
1195static void tda1004x_release(struct dvb_frontend* fe) 1198static void tda10045_release(struct dvb_frontend* fe)
1199{
1200 struct tda1004x_state *state = fe->demodulator_priv;
1201 kfree(state);
1202}
1203
1204static void tda10046_release(struct dvb_frontend* fe)
1196{ 1205{
1197 struct tda1004x_state *state = fe->demodulator_priv; 1206 struct tda1004x_state *state = fe->demodulator_priv;
1198 kfree(state); 1207 kfree(state);
@@ -1212,10 +1221,11 @@ static struct dvb_frontend_ops tda10045_ops = {
1212 FE_CAN_TRANSMISSION_MODE_AUTO | FE_CAN_GUARD_INTERVAL_AUTO 1221 FE_CAN_TRANSMISSION_MODE_AUTO | FE_CAN_GUARD_INTERVAL_AUTO
1213 }, 1222 },
1214 1223
1215 .release = tda1004x_release, 1224 .release = tda10045_release,
1216 1225
1217 .init = tda10045_init, 1226 .init = tda10045_init,
1218 .sleep = tda1004x_sleep, 1227 .sleep = tda1004x_sleep,
1228 .write = tda1004x_write,
1219 .i2c_gate_ctrl = tda1004x_i2c_gate_ctrl, 1229 .i2c_gate_ctrl = tda1004x_i2c_gate_ctrl,
1220 1230
1221 .set_frontend = tda1004x_set_fe, 1231 .set_frontend = tda1004x_set_fe,
@@ -1270,10 +1280,11 @@ static struct dvb_frontend_ops tda10046_ops = {
1270 FE_CAN_TRANSMISSION_MODE_AUTO | FE_CAN_GUARD_INTERVAL_AUTO 1280 FE_CAN_TRANSMISSION_MODE_AUTO | FE_CAN_GUARD_INTERVAL_AUTO
1271 }, 1281 },
1272 1282
1273 .release = tda1004x_release, 1283 .release = tda10046_release,
1274 1284
1275 .init = tda10046_init, 1285 .init = tda10046_init,
1276 .sleep = tda1004x_sleep, 1286 .sleep = tda1004x_sleep,
1287 .write = tda1004x_write,
1277 .i2c_gate_ctrl = tda1004x_i2c_gate_ctrl, 1288 .i2c_gate_ctrl = tda1004x_i2c_gate_ctrl,
1278 1289
1279 .set_frontend = tda1004x_set_fe, 1290 .set_frontend = tda1004x_set_fe,
@@ -1323,4 +1334,3 @@ MODULE_LICENSE("GPL");
1323 1334
1324EXPORT_SYMBOL(tda10045_attach); 1335EXPORT_SYMBOL(tda10045_attach);
1325EXPORT_SYMBOL(tda10046_attach); 1336EXPORT_SYMBOL(tda10046_attach);
1326EXPORT_SYMBOL(tda1004x_write_byte);