summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa6752hs.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-10-09 18:07:06 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-10-09 18:07:06 +0000
commit1c769dacd06c44528955753c2cac21b1d4b8ddef (patch)
treecbd22854f18480a8054382799ade8c765ab618d1 /linux/drivers/media/video/saa6752hs.c
parent15e9f7c5dda7607d5080c899de36fe6003e1318c (diff)
downloadmediapointer-dvb-s2-1c769dacd06c44528955753c2cac21b1d4b8ddef.tar.gz
mediapointer-dvb-s2-1c769dacd06c44528955753c2cac21b1d4b8ddef.tar.bz2
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
- Lots of small changes to allow compiling with kernel 2.4. Compilation result not tested yet. - After this patch, .version should be removed, since its syntax has changed. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video/saa6752hs.c')
-rw-r--r--linux/drivers/media/video/saa6752hs.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/linux/drivers/media/video/saa6752hs.c b/linux/drivers/media/video/saa6752hs.c
index 888e0b19d..fa3df17a4 100644
--- a/linux/drivers/media/video/saa6752hs.c
+++ b/linux/drivers/media/video/saa6752hs.c
@@ -15,11 +15,9 @@
#include <linux/crc32.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-#include "i2c-compat.h"
-#include "id.h"
-#else
-#include <media/id.h>
+#include <media/i2c-compat.h>
#endif
+#include <media/id.h>
#define MPEG_VIDEO_TARGET_BITRATE_MAX 27000
#define MPEG_VIDEO_MAX_BITRATE_MAX 27000
@@ -543,8 +541,12 @@ static int saa6752hs_attach(struct i2c_adapter *adap, int addr, int kind)
static int saa6752hs_probe(struct i2c_adapter *adap)
{
+#if I2C_CLASS_TV_ANALOG
if (adap->class & I2C_CLASS_TV_ANALOG)
return i2c_probe(adap, &addr_data, saa6752hs_attach);
+#else
+ return i2c_probe(adap, &addr_data, saa6752hs_attach);
+#endif
return 0;
}
@@ -610,7 +612,9 @@ saa6752hs_command(struct i2c_client *client, unsigned int cmd, void *arg)
/* ----------------------------------------------------------------------- */
static struct i2c_driver driver = {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
.owner = THIS_MODULE,
+#endif
.name = "i2c saa6752hs MPEG encoder",
.id = I2C_DRIVERID_SAA6752HS,
.flags = I2C_DF_NOTIFY,