From 52910398e48695e1b055511885f1af72943fa1f2 Mon Sep 17 00:00:00 2001 From: Kenneth Aafloy Date: Mon, 23 Aug 2004 15:48:07 +0000 Subject: - Fix: `I2C_CLASS_TV_DIGITAL' undeclared --- linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drivers/media/dvb/ttusb-budget') 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 5eb51d78a..f0e4a0bb4 100644 --- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c @@ -1147,7 +1147,11 @@ static int ttusb_probe(struct usb_interface *intf, const struct usb_device_id *i i2c_set_adapdata(&ttusb->i2c_adap, ttusb); +#ifdef I2C_ADAP_CLASS_TV_DIGITAL + ttusb->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL; +#else ttusb->i2c_adap.class = I2C_CLASS_TV_DIGITAL; +#endif ttusb->i2c_adap.algo = &ttusb_dec_algo; ttusb->i2c_adap.algo_data = NULL; ttusb->i2c_adap.id = I2C_ALGO_BIT; -- cgit v1.2.3