diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-02 17:41:25 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-02 17:41:25 +0200 |
commit | 6410f773e97c767efd60c1ca901bd4f1f97d57c0 (patch) | |
tree | 52e806062e4fd07d45223a9568def7c50b54010b /linux/include/media | |
parent | a094d5bae41248bc239d58e5f454b6d702726dcb (diff) | |
download | mediapointer-dvb-s2-6410f773e97c767efd60c1ca901bd4f1f97d57c0.tar.gz mediapointer-dvb-s2-6410f773e97c767efd60c1ca901bd4f1f97d57c0.tar.bz2 |
v4l2-i2c-drv.h: fix compilation on kernel 2.6.25.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media')
-rw-r--r-- | linux/include/media/v4l2-i2c-drv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-i2c-drv.h b/linux/include/media/v4l2-i2c-drv.h index 52898df94..121f0ada0 100644 --- a/linux/include/media/v4l2-i2c-drv.h +++ b/linux/include/media/v4l2-i2c-drv.h @@ -73,7 +73,11 @@ static int __init v4l2_i2c_drv_init(void) #else +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) static struct i2c_client_address_data addr_data; +#else +static const struct i2c_client_address_data addr_data; +#endif /* Bus-based I2C API is not present, add legacy code */ |