Skip to content

Commit

Permalink
[media] fc0012: remove unused callback and correct one comment
Browse files Browse the repository at this point in the history
There is no need to keep dummy sleep() callback implementation as
DVB-core checks existence of it before calls callback. Due to that
we can remove it.
FC0012 is based of direct-conversion receiver architecture
(aka Zero-IF) where is no IF used. Due to that IF is always 0 Hz.
Fix comment to point that.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Acked-by: Hans-Frieder Vogt <hfvogt@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Jan 6, 2013
1 parent 4562620 commit c5dc3b9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions drivers/media/tuners/fc0012.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ static int fc0012_init(struct dvb_frontend *fe)
return ret;
}

static int fc0012_sleep(struct dvb_frontend *fe)
{
/* nothing to do here */
return 0;
}

static int fc0012_set_params(struct dvb_frontend *fe)
{
struct fc0012_priv *priv = fe->tuner_priv;
Expand Down Expand Up @@ -343,8 +337,7 @@ static int fc0012_get_frequency(struct dvb_frontend *fe, u32 *frequency)

static int fc0012_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
{
/* CHECK: always ? */
*frequency = 0;
*frequency = 0; /* Zero-IF */
return 0;
}

Expand Down Expand Up @@ -437,7 +430,6 @@ static const struct dvb_tuner_ops fc0012_tuner_ops = {
.release = fc0012_release,

.init = fc0012_init,
.sleep = fc0012_sleep,

.set_params = fc0012_set_params,

Expand Down

0 comments on commit c5dc3b9

Please sign in to comment.