Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61322
b: refs/heads/master
c: 5d807c9
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent c37f1c0 commit d792ea1
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 0f838f8d02415a25358850cc32d36cd72c2a798b
refs/heads/master: 5d807c9fc3fe8a88f1bb95a54da11cebed1612a6
13 changes: 8 additions & 5 deletions trunk/drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,13 @@ static void default_set_radio_freq(struct i2c_client *c, unsigned int freq)
tuner_warn("i2c i/o error: rc == %d (should be 4)\n",rc);
}

static struct tuner_operations simple_tuner_ops = {
.set_tv_freq = default_set_tv_freq,
.set_radio_freq = default_set_radio_freq,
.has_signal = tuner_signal,
.is_stereo = tuner_stereo,
};

int default_tuner_init(struct i2c_client *c)
{
struct tuner *t = i2c_get_clientdata(c);
Expand All @@ -487,11 +494,7 @@ int default_tuner_init(struct i2c_client *c)
t->type, tuners[t->type].name);
strlcpy(c->name, tuners[t->type].name, sizeof(c->name));

t->ops.set_tv_freq = default_set_tv_freq;
t->ops.set_radio_freq = default_set_radio_freq;
t->ops.has_signal = tuner_signal;
t->ops.is_stereo = tuner_stereo;
t->ops.standby = NULL;
memcpy(&t->ops, &simple_tuner_ops, sizeof(struct tuner_operations));

return 0;
}
Expand Down

0 comments on commit d792ea1

Please sign in to comment.