summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-02-25 13:15:16 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2006-02-25 13:15:16 -0500
commitcda6f34be9282b1ff7bd7651998479a4e60e194a (patch)
tree60e5205f6a7497ebb9e277b49c9525b3d211a251
parent81b8cbeb924571e6a8877f5d541d65b0896b08fb (diff)
downloadmediapointer-dvb-s2-cda6f34be9282b1ff7bd7651998479a4e60e194a.tar.gz
mediapointer-dvb-s2-cda6f34be9282b1ff7bd7651998479a4e60e194a.tar.bz2
fix build for older kernels
From: Michael Krufky <mkrufky@linuxtv.org> - killed I2C_ALGO_BIT Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-i2c-core.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-i2c-core.c b/v4l_experimental/pvrusb2/pvrusb2-i2c-core.c
index 245747341..0c73675b4 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-i2c-core.c
+++ b/v4l_experimental/pvrusb2/pvrusb2-i2c-core.c
@@ -692,7 +692,7 @@ static int pvr2_i2c_detach_inform(struct i2c_client *client)
static struct i2c_algorithm pvr2_i2c_algo_template = {
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
- .id = I2C_ALGO_BIT | I2C_HW_B_BT848,
+ .id = I2C_HW_B_BT848,
#endif
.master_xfer = pvr2_i2c_xfer,
.algo_control = pvr2_i2c_control,
@@ -702,11 +702,7 @@ static struct i2c_algorithm pvr2_i2c_algo_template = {
static struct i2c_adapter pvr2_i2c_adap_template = {
.owner = THIS_MODULE,
.class = I2C_CLASS_TV_ANALOG,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
- .id = I2C_ALGO_BIT | I2C_HW_B_BT848,
-#else
.id = I2C_HW_B_BT848,
-#endif
.client_register = pvr2_i2c_attach_inform,
.client_unregister = pvr2_i2c_detach_inform,
};