diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-17 23:50:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:17:52 -0400 |
commit | f87086e302300fdff1bd32049deb7a7f3e3de7da (patch) | |
tree | 27b42587cf577a63d9f79ccb27267e0dea7188cb /drivers/media/dvb | |
parent | e01117c81676dc9897f567e32cdc13a26e85280b (diff) |
v4l-dvb: remove legacy checks to allow support for kernels < 2.6.10
Also remove some blank lines that were used to split compat code at -devel
tree.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb-i2c.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-core.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 4 |
4 files changed, 0 insertions, 16 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c b/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c index 23428cd30756..326f7608954b 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c +++ b/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c | |||
@@ -20,11 +20,7 @@ int dvb_usb_i2c_init(struct dvb_usb_device *d) | |||
20 | } | 20 | } |
21 | 21 | ||
22 | strncpy(d->i2c_adap.name, d->desc->name, sizeof(d->i2c_adap.name)); | 22 | strncpy(d->i2c_adap.name, d->desc->name, sizeof(d->i2c_adap.name)); |
23 | #ifdef I2C_ADAP_CLASS_TV_DIGITAL | ||
24 | d->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL, | ||
25 | #else | ||
26 | d->i2c_adap.class = I2C_CLASS_TV_DIGITAL, | 23 | d->i2c_adap.class = I2C_CLASS_TV_DIGITAL, |
27 | #endif | ||
28 | d->i2c_adap.algo = d->props.i2c_algo; | 24 | d->i2c_adap.algo = d->props.i2c_algo; |
29 | d->i2c_adap.algo_data = NULL; | 25 | d->i2c_adap.algo_data = NULL; |
30 | d->i2c_adap.dev.parent = &d->udev->dev; | 26 | d->i2c_adap.dev.parent = &d->udev->dev; |
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 865c4596b7b7..0777e8f9544b 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -2471,11 +2471,7 @@ static int __devinit av7110_attach(struct saa7146_dev* dev, | |||
2471 | get recognized before the main driver is fully loaded */ | 2471 | get recognized before the main driver is fully loaded */ |
2472 | saa7146_write(dev, GPIO_CTRL, 0x500000); | 2472 | saa7146_write(dev, GPIO_CTRL, 0x500000); |
2473 | 2473 | ||
2474 | #ifdef I2C_ADAP_CLASS_TV_DIGITAL | ||
2475 | av7110->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL; | ||
2476 | #else | ||
2477 | av7110->i2c_adap.class = I2C_CLASS_TV_DIGITAL; | 2474 | av7110->i2c_adap.class = I2C_CLASS_TV_DIGITAL; |
2478 | #endif | ||
2479 | strlcpy(av7110->i2c_adap.name, pci_ext->ext_priv, sizeof(av7110->i2c_adap.name)); | 2475 | strlcpy(av7110->i2c_adap.name, pci_ext->ext_priv, sizeof(av7110->i2c_adap.name)); |
2480 | 2476 | ||
2481 | saa7146_i2c_adapter_prepare(dev, &av7110->i2c_adap, SAA7146_I2C_BUS_BIT_RATE_120); /* 275 kHz */ | 2477 | saa7146_i2c_adapter_prepare(dev, &av7110->i2c_adap, SAA7146_I2C_BUS_BIT_RATE_120); /* 275 kHz */ |
diff --git a/drivers/media/dvb/ttpci/budget-core.c b/drivers/media/dvb/ttpci/budget-core.c index 18cac4b12ab2..6f4ddb643fee 100644 --- a/drivers/media/dvb/ttpci/budget-core.c +++ b/drivers/media/dvb/ttpci/budget-core.c | |||
@@ -497,11 +497,7 @@ int ttpci_budget_init(struct budget *budget, struct saa7146_dev *dev, | |||
497 | if (bi->type != BUDGET_FS_ACTIVY) | 497 | if (bi->type != BUDGET_FS_ACTIVY) |
498 | saa7146_write(dev, GPIO_CTRL, 0x500000); /* GPIO 3 = 1 */ | 498 | saa7146_write(dev, GPIO_CTRL, 0x500000); /* GPIO 3 = 1 */ |
499 | 499 | ||
500 | #ifdef I2C_ADAP_CLASS_TV_DIGITAL | ||
501 | budget->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL; | ||
502 | #else | ||
503 | budget->i2c_adap.class = I2C_CLASS_TV_DIGITAL; | 500 | budget->i2c_adap.class = I2C_CLASS_TV_DIGITAL; |
504 | #endif | ||
505 | 501 | ||
506 | strlcpy(budget->i2c_adap.name, budget->card->name, sizeof(budget->i2c_adap.name)); | 502 | strlcpy(budget->i2c_adap.name, budget->card->name, sizeof(budget->i2c_adap.name)); |
507 | 503 | ||
diff --git a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index bc2043e44ebd..156072239374 100644 --- a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | |||
@@ -1693,11 +1693,7 @@ static int ttusb_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
1693 | 1693 | ||
1694 | i2c_set_adapdata(&ttusb->i2c_adap, ttusb); | 1694 | i2c_set_adapdata(&ttusb->i2c_adap, ttusb); |
1695 | 1695 | ||
1696 | #ifdef I2C_ADAP_CLASS_TV_DIGITAL | ||
1697 | ttusb->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL; | ||
1698 | #else | ||
1699 | ttusb->i2c_adap.class = I2C_CLASS_TV_DIGITAL; | 1696 | ttusb->i2c_adap.class = I2C_CLASS_TV_DIGITAL; |
1700 | #endif | ||
1701 | ttusb->i2c_adap.algo = &ttusb_dec_algo; | 1697 | ttusb->i2c_adap.algo = &ttusb_dec_algo; |
1702 | ttusb->i2c_adap.algo_data = NULL; | 1698 | ttusb->i2c_adap.algo_data = NULL; |
1703 | ttusb->i2c_adap.dev.parent = &udev->dev; | 1699 | ttusb->i2c_adap.dev.parent = &udev->dev; |