summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7111.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-04-30 10:15:46 +0000
committerMichael Hunold <devnull@localhost>2003-04-30 10:15:46 +0000
commit4bdbd31d1ae35244fc58d39fc00f31e18599c782 (patch)
treee1f3211eca651e3003f6cede823cc3d9b017e01a /linux/drivers/media/video/saa7111.c
parent154d8f58826e37fee3f32fab0493158e93ed19d4 (diff)
downloadmediapointer-dvb-s2-4bdbd31d1ae35244fc58d39fc00f31e18599c782.tar.gz
mediapointer-dvb-s2-4bdbd31d1ae35244fc58d39fc00f31e18599c782.tar.bz2
- introduce dvb_functions.h in order to make the dvb subsystem
less dependent on the linux kernel. here is the place to store additional dvb_* functions, which encapsulate linux kernel functionality which cannot be expressed as a one-liner - rename ddelay() to dvb_delay(), move it to dvb_functions.h - change all files to include dvb_functions.h instead of dvb_compat.h - compile fix for the saa7111 driver
Diffstat (limited to 'linux/drivers/media/video/saa7111.c')
-rw-r--r--linux/drivers/media/video/saa7111.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7111.c b/linux/drivers/media/video/saa7111.c
index b25b64bfc..286ee8f0d 100644
--- a/linux/drivers/media/video/saa7111.c
+++ b/linux/drivers/media/video/saa7111.c
@@ -121,7 +121,11 @@ static int saa7111_attach(struct i2c_adapter *adap, int addr, unsigned short fla
memset(decoder, 0, sizeof(*decoder));
decoder->client = client;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
+ client->data = decoder;
+#else
i2c_set_clientdata(client, decoder);
+#endif
decoder->addr = addr;
decoder->norm = VIDEO_MODE_NTSC;
decoder->input = 0;