diff options
author | Andreas Oberritter <devnull@localhost> | 2005-07-16 22:42:53 +0000 |
---|---|---|
committer | Andreas Oberritter <devnull@localhost> | 2005-07-16 22:42:53 +0000 |
commit | ef93805dcc032cfe67bc0ff3b638dc19217daf8f (patch) | |
tree | 45469e6b21ced9aba6440952d64b281afafde521 /linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | |
parent | 2b00c025dbec88b2dd54ba8c5a37f6eb53354d2e (diff) | |
download | mediapointer-dvb-s2-ef93805dcc032cfe67bc0ff3b638dc19217daf8f.tar.gz mediapointer-dvb-s2-ef93805dcc032cfe67bc0ff3b638dc19217daf8f.tar.bz2 |
Pass a pointer to the i2c bus to the pll callbacks (stv0299 only).
It was not possible to tell which i2c bus should be used if an adapter has
multiple frontends on multiple i2c buses.
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index aa43b5fcb..20bfb0d28 100644 --- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c @@ -1299,7 +1299,7 @@ static int alps_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 return 0; } -static int philips_tsa5059_pll_set(struct dvb_frontend *fe, struct dvb_frontend_parameters *params) +static int philips_tsa5059_pll_set(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct dvb_frontend_parameters *params) { struct ttusb* ttusb = (struct ttusb*) fe->dvb->priv; u8 buf[4]; @@ -1322,7 +1322,7 @@ static int philips_tsa5059_pll_set(struct dvb_frontend *fe, struct dvb_frontend_ if (ttusb->revision == TTUSB_REV_2_2) buf[3] |= 0x20; - if (i2c_transfer(&ttusb->i2c_adap, &msg, 1) != 1) + if (i2c_transfer(i2c, &msg, 1) != 1) return -EIO; return 0; |