diff options
author | Michael Hunold <devnull@localhost> | 2003-04-30 10:15:46 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-04-30 10:15:46 +0000 |
commit | 4bdbd31d1ae35244fc58d39fc00f31e18599c782 (patch) | |
tree | e1f3211eca651e3003f6cede823cc3d9b017e01a /linux/drivers/media/video/saa7111.c | |
parent | 154d8f58826e37fee3f32fab0493158e93ed19d4 (diff) | |
download | mediapointer-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.c | 4 |
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; |