From 4bdbd31d1ae35244fc58d39fc00f31e18599c782 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Wed, 30 Apr 2003 10:15:46 +0000 Subject: - 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 --- linux/drivers/media/video/saa7111.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drivers/media/video/saa7111.c') 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; -- cgit v1.2.3