Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61321
b: refs/heads/master
c: 0f838f8
h: refs/heads/master
i:
  61319: 67805dd
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent dc66dcb commit c37f1c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: e407cd54eecc955b2658106403a294612bf4ed66
refs/heads/master: 0f838f8d02415a25358850cc32d36cd72c2a798b
14 changes: 9 additions & 5 deletions trunk/drivers/media/video/tea5767.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,18 +343,22 @@ int tea5767_autodetection(struct i2c_client *c)
return 0;
}

static struct tuner_operations tea5767_tuner_ops = {
.set_tv_freq = set_tv_freq,
.set_radio_freq = set_radio_freq,
.has_signal = tea5767_signal,
.is_stereo = tea5767_stereo,
.standby = tea5767_standby,
};

int tea5767_tuner_init(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);

tuner_info("type set to %d (%s)\n", t->type, "Philips TEA5767HN FM Radio");
strlcpy(c->name, "tea5767", sizeof(c->name));

t->ops.set_tv_freq = set_tv_freq;
t->ops.set_radio_freq = set_radio_freq;
t->ops.has_signal = tea5767_signal;
t->ops.is_stereo = tea5767_stereo;
t->ops.standby = tea5767_standby;
memcpy(&t->ops, &tea5767_tuner_ops, sizeof(struct tuner_operations));

return (0);
}

0 comments on commit c37f1c0

Please sign in to comment.