diff options
Diffstat (limited to 'hdpvr-ir-enable.patch')
-rw-r--r-- | hdpvr-ir-enable.patch | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/hdpvr-ir-enable.patch b/hdpvr-ir-enable.patch index 787c8f84c..e73c42122 100644 --- a/hdpvr-ir-enable.patch +++ b/hdpvr-ir-enable.patch @@ -110,7 +110,7 @@ index 463b81b..60cdc06 100644 msgs[i].len); } -@@ -115,31 +120,59 @@ static struct i2c_algorithm hdpvr_algo = { +@@ -115,30 +120,58 @@ static struct i2c_algorithm hdpvr_algo = { .functionality = hdpvr_functionality, }; @@ -119,7 +119,6 @@ index 463b81b..60cdc06 100644 + .owner = THIS_MODULE, + .id = I2C_HW_B_HDPVR, + .algo = &hdpvr_algo, -+ .class = I2C_CLASS_TV_ANALOG, +}; + +static struct i2c_board_info hdpvr_i2c_board_info = { @@ -160,7 +159,6 @@ index 463b81b..60cdc06 100644 - strlcpy(i2c_adap->name, "Hauppauge HD PVR I2C", - sizeof(i2c_adap->name)); - i2c_adap->algo = &hdpvr_algo; -- i2c_adap->class = I2C_CLASS_TV_ANALOG; - i2c_adap->owner = THIS_MODULE; - i2c_adap->dev.parent = &dev->udev->dev; + memcpy(&dev->i2c_adapter, &hdpvr_i2c_adapter_template, @@ -218,3 +216,14 @@ index b0f046d..2107055 100644 /* I2C lock */ struct mutex i2c_mutex; +diff --git a/include/linux/i2c-id.h b/include/linux/i2c-id.h +index 4bef5c5..4385341 100644 +--- a/include/linux/i2c-id.h ++++ b/include/linux/i2c-id.h +@@ -33,5 +33,6 @@ + + /* --- Bit algorithm adapters */ + #define I2C_HW_B_CX2388x 0x01001b /* connexant 2388x based tv cards */ ++#define I2C_HW_B_HDPVR 0x010025 /* Hauppauge HD PVR */ + + #endif /* LINUX_I2C_ID_H */ |