diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-12-08 11:43:14 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-12-08 11:43:14 +0100 |
commit | db762262e6462dc271dbd1bb302f727ef6caa44c (patch) | |
tree | cbd4d47024495ba6cfc85f0c5b77cbbd4db7a582 /linux/drivers/media/video/wm8739.c | |
parent | 0a36e5a6265b78310c431807d5e106f93939ac5d (diff) | |
download | mediapointer-dvb-s2-db762262e6462dc271dbd1bb302f727ef6caa44c.tar.gz mediapointer-dvb-s2-db762262e6462dc271dbd1bb302f727ef6caa44c.tar.bz2 |
ivtv: remove i2c legacy support from drivers that no longer need it
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/wm8739.c')
-rw-r--r-- | linux/drivers/media/video/wm8739.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/video/wm8739.c b/linux/drivers/media/video/wm8739.c index a0a4ed3ba..36babfdb2 100644 --- a/linux/drivers/media/video/wm8739.c +++ b/linux/drivers/media/video/wm8739.c @@ -42,7 +42,6 @@ MODULE_AUTHOR("T. Adachi, Hans Verkuil"); MODULE_LICENSE("GPL"); static int debug; -static unsigned short normal_i2c[] = { 0x34 >> 1, 0x36 >> 1, I2C_CLIENT_END }; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) module_param(debug, int, 0644); @@ -52,11 +51,15 @@ MODULE_PARM(debug, "i"); MODULE_PARM_DESC(debug, "Debug level (0-1)"); +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) +static unsigned short normal_i2c[] = { 0x34 >> 1, 0x36 >> 1, I2C_CLIENT_END }; + #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 13) static unsigned short normal_i2c_range[] = { I2C_CLIENT_END }; #endif I2C_CLIENT_INSMOD; +#endif /* ------------------------------------------------------------------------ */ |