Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37353
b: refs/heads/master
c: ef09c07
h: refs/heads/master
i:
  37351: f58a7f7
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent f107813 commit 3f4ce3e
Show file tree
Hide file tree
Showing 2 changed files with 8 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: e2ac28fa15696d3d9dc38923438ad39fe1235ecd
refs/heads/master: ef09c071a2867279a49374c35b2a169f69fced73
13 changes: 7 additions & 6 deletions trunk/drivers/media/dvb/frontends/tda826x.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ static int tda826x_get_frequency(struct dvb_frontend *fe, u32 *frequency)
}

static struct dvb_tuner_ops tda826x_tuner_ops = {
.info = {
.name = "Philips TDA826X",
.frequency_min = 950000,
.frequency_min = 2175000
},
.release = tda826x_release,
.sleep = tda826x_sleep,
.set_params = tda826x_set_params,
Expand All @@ -120,13 +125,12 @@ struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2
{
struct tda826x_priv *priv = NULL;
u8 b1 [] = { 0, 0 };
struct i2c_msg msg [] = { { .addr = addr, .flags = 0, .buf = NULL, .len = 0 },
{ .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 } };
struct i2c_msg msg [] = { { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 } };
int ret;

if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 1);
ret = i2c_transfer (i2c, msg, 2);
ret = i2c_transfer (i2c, msg, 1);
if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 0);

Expand All @@ -144,9 +148,6 @@ struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2
priv->has_loopthrough = has_loopthrough;

memcpy(&fe->ops.tuner_ops, &tda826x_tuner_ops, sizeof(struct dvb_tuner_ops));
strncpy(fe->ops.tuner_ops.info.name, "Philips TDA826X", 128);
fe->ops.tuner_ops.info.frequency_min = 950000;
fe->ops.tuner_ops.info.frequency_min = 2175000;

fe->tuner_priv = priv;
printk("%s:\n", __FUNCTION__);
Expand Down

0 comments on commit 3f4ce3e

Please sign in to comment.