aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorAkihiro Tsukada <tskd2@yahoo.co.jp>2009-11-04 13:40:36 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:41:14 -0500
commit9ebef973b4a3b9af5c71ef5c266efac8be3e17e0 (patch)
treed39a4f3fcf8bc38c258a153085e3974fdfcc2a0a /drivers/media/dvb/dvb-usb
parentad12f07bf21e8d98e6042c8ed795d2d041e26934 (diff)
V4L/DVB (13294): dvb-usb-friio: cleaning up unnecessary functions
This patch removes some fe->ops.X() functions which do nothing more useful than the default. Signed-off-by: Akihiro Tsukada <tskd2@yahoo.co.jp> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r--drivers/media/dvb/dvb-usb/friio-fe.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/media/dvb/dvb-usb/friio-fe.c b/drivers/media/dvb/dvb-usb/friio-fe.c
index 8b489d11eb37..9cbbe42ca44b 100644
--- a/drivers/media/dvb/dvb-usb/friio-fe.c
+++ b/drivers/media/dvb/dvb-usb/friio-fe.c
@@ -232,12 +232,6 @@ static int jdvbt90502_read_status(struct dvb_frontend *fe, fe_status_t *state)
232 return 0; 232 return 0;
233} 233}
234 234
235static int jdvbt90502_read_ber(struct dvb_frontend *fe, u32 *ber)
236{
237 *ber = 0;
238 return 0;
239}
240
241static int jdvbt90502_read_signal_strength(struct dvb_frontend *fe, 235static int jdvbt90502_read_signal_strength(struct dvb_frontend *fe,
242 u16 *strength) 236 u16 *strength)
243{ 237{
@@ -264,27 +258,6 @@ static int jdvbt90502_read_signal_strength(struct dvb_frontend *fe,
264 return 0; 258 return 0;
265} 259}
266 260
267static int jdvbt90502_read_snr(struct dvb_frontend *fe, u16 *snr)
268{
269 *snr = 0x0101;
270 return 0;
271}
272
273static int jdvbt90502_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
274{
275 *ucblocks = 0;
276 return 0;
277}
278
279static int jdvbt90502_get_tune_settings(struct dvb_frontend *fe,
280 struct dvb_frontend_tune_settings *fs)
281{
282 fs->min_delay_ms = 500;
283 fs->step_size = 0;
284 fs->max_drift = 0;
285
286 return 0;
287}
288 261
289/* filter out un-supported properties to notify users */ 262/* filter out un-supported properties to notify users */
290static int jdvbt90502_set_property(struct dvb_frontend *fe, 263static int jdvbt90502_set_property(struct dvb_frontend *fe,
@@ -347,12 +320,6 @@ static int jdvbt90502_set_frontend(struct dvb_frontend *fe,
347 return 0; 320 return 0;
348} 321}
349 322
350static int jdvbt90502_sleep(struct dvb_frontend *fe)
351{
352 deb_fe("%s called.\n", __func__);
353 return 0;
354}
355
356 323
357/** 324/**
358 * (reg, val) commad list to initialize this module. 325 * (reg, val) commad list to initialize this module.
@@ -493,18 +460,13 @@ static struct dvb_frontend_ops jdvbt90502_ops = {
493 .release = jdvbt90502_release, 460 .release = jdvbt90502_release,
494 461
495 .init = jdvbt90502_init, 462 .init = jdvbt90502_init,
496 .sleep = jdvbt90502_sleep,
497 .write = _jdvbt90502_write, 463 .write = _jdvbt90502_write,
498 464
499 .set_property = jdvbt90502_set_property, 465 .set_property = jdvbt90502_set_property,
500 466
501 .set_frontend = jdvbt90502_set_frontend, 467 .set_frontend = jdvbt90502_set_frontend,
502 .get_frontend = jdvbt90502_get_frontend, 468 .get_frontend = jdvbt90502_get_frontend,
503 .get_tune_settings = jdvbt90502_get_tune_settings,
504 469
505 .read_status = jdvbt90502_read_status, 470 .read_status = jdvbt90502_read_status,
506 .read_ber = jdvbt90502_read_ber,
507 .read_signal_strength = jdvbt90502_read_signal_strength, 471 .read_signal_strength = jdvbt90502_read_signal_strength,
508 .read_snr = jdvbt90502_read_snr,
509 .read_ucblocks = jdvbt90502_read_ucblocks,
510}; 472};