Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76564
b: refs/heads/master
c: a55db8c
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent c8e5860 commit e5a7ca6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab1660503ac3af7febfcf987648509b484d4feda
refs/heads/master: a55db8cd7f8a107f3abcb4c803b1873b2be63663
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ static int tda8295_probe(struct tuner_i2c_props *i2c_props)
}

static struct analog_tuner_ops tda8290_tuner_ops = {
.info = {
.name = "TDA8290",
},
.set_params = tda8290_set_params,
.has_signal = tda8290_has_signal,
.standby = tda8290_standby,
Expand All @@ -644,6 +647,9 @@ static struct analog_tuner_ops tda8290_tuner_ops = {
};

static struct analog_tuner_ops tda8295_tuner_ops = {
.info = {
.name = "TDA8295",
},
.set_params = tda8295_set_params,
.has_signal = tda8295_has_signal,
.standby = tda8295_standby,
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/video/tda9887.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ static void tda9887_release(struct dvb_frontend *fe)
}

static struct analog_tuner_ops tda9887_tuner_ops = {
.info = {
.name = "TDA9887",
},
.set_params = tda9887_set_params,
.standby = tda9887_standby,
.tuner_status = tda9887_tuner_status,
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ static void set_type(struct i2c_client *c, unsigned int type,

t->fe.ops.analog_demod_ops = &tuner_core_ops;
t->fe.analog_demod_priv = t;
} else {
strlcpy(t->i2c->name, ops->info.name,
sizeof(t->i2c->name));
}

tuner_dbg("type set to %s\n", t->i2c->name);
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/media/video/tuner-driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@

extern unsigned const int tuner_count;

struct analog_demod_info {
char name[128];
};

struct analog_tuner_ops {

struct analog_demod_info info;

void (*set_params)(struct dvb_frontend *fe,
struct analog_parameters *params);
int (*has_signal)(struct dvb_frontend *fe);
Expand Down

0 comments on commit e5a7ca6

Please sign in to comment.