summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/au0828
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-06-26 15:00:59 -0400
committerMichael Krufky <mkrufky@kernellabs.com>2009-06-26 15:00:59 -0400
commitb59d997727eebbc353fdcf766af87931971f2c55 (patch)
treecaee2e1b4d458ed0b6e7cfe0a719625a204d19fb /linux/drivers/media/video/au0828
parente4340839f4ea666cb09caf45d10d30a18a17d2f9 (diff)
downloadmediapointer-dvb-s2-b59d997727eebbc353fdcf766af87931971f2c55.tar.gz
mediapointer-dvb-s2-b59d997727eebbc353fdcf766af87931971f2c55.tar.bz2
au0828: fix i2c for kernels prior to 2.6.26
From: Michael Krufky <mkrufky@kernellabs.com> Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Diffstat (limited to 'linux/drivers/media/video/au0828')
-rw-r--r--linux/drivers/media/video/au0828/au0828-i2c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/au0828/au0828-i2c.c b/linux/drivers/media/video/au0828/au0828-i2c.c
index a589d2ccb..bbe38a7a2 100644
--- a/linux/drivers/media/video/au0828/au0828-i2c.c
+++ b/linux/drivers/media/video/au0828/au0828-i2c.c
@@ -326,6 +326,9 @@ static struct i2c_adapter au0828_i2c_adap_template = {
.owner = THIS_MODULE,
.id = I2C_HW_B_AU0828,
.algo = &au0828_i2c_algo_template,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
+ .class = I2C_CLASS_TV_ANALOG,
+#endif
};
static struct i2c_client au0828_i2c_client_template = {