Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61319
b: refs/heads/master
c: 9af596e
h: refs/heads/master
i:
  61317: bbc719e
  61315: 62c5b80
  61311: f1606b5
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent 1b107d0 commit 67805dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fd8b263678ab8430b49c99976ade681f8a78439
refs/heads/master: 9af596ebc7ad3afb0df520b4becad915dd5a5584
16 changes: 10 additions & 6 deletions trunk/drivers/media/video/tda9887.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,15 @@ static void tda9887_release(struct i2c_client *c)
t->priv = NULL;
}

static struct tuner_operations tda9887_tuner_ops = {
.set_tv_freq = tda9887_set_freq,
.set_radio_freq = tda9887_set_freq,
.standby = tda9887_standby,
.tuner_status = tda9887_tuner_status,
.get_afc = tda9887_get_afc,
.release = tda9887_release,
};

int tda9887_tuner_init(struct i2c_client *c)
{
struct tda9887_priv *priv = NULL;
Expand All @@ -614,12 +623,7 @@ int tda9887_tuner_init(struct i2c_client *c)
tda9887_info("tda988[5/6/7] found @ 0x%x (%s)\n", t->i2c.addr,
t->i2c.driver->driver.name);

t->ops.set_tv_freq = tda9887_set_freq;
t->ops.set_radio_freq = tda9887_set_freq;
t->ops.standby = tda9887_standby;
t->ops.tuner_status = tda9887_tuner_status;
t->ops.get_afc = tda9887_get_afc;
t->ops.release = tda9887_release;
memcpy(&t->ops, &tda9887_tuner_ops, sizeof(struct tuner_operations));

return 0;
}
Expand Down

0 comments on commit 67805dd

Please sign in to comment.