summaryrefslogtreecommitdiff
path: root/v4l_experimental/dpl3518.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l_experimental/dpl3518.c')
-rw-r--r--v4l_experimental/dpl3518.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/v4l_experimental/dpl3518.c b/v4l_experimental/dpl3518.c
index 43533767e..a9ee6bd52 100644
--- a/v4l_experimental/dpl3518.c
+++ b/v4l_experimental/dpl3518.c
@@ -46,12 +46,7 @@
#include <linux/fs.h>
#include <asm/uaccess.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-#include "id.h"
-#include "i2c-compat.h"
-#else
#include <media/id.h>
-#endif
#include "dpl3518.h"
@@ -60,9 +55,7 @@
static unsigned short normal_i2c[] = {
I2C_DPL3518 >> 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;
struct dpl3518 {
@@ -235,12 +228,7 @@ static void dpl3518_spatial(struct i2c_client *client, int spatial)
/* ----------------------------------------------------------------------- */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
static int dpl3518_attach(struct i2c_adapter *adap, int addr, int kind)
-#else
-static int dpl3518_attach(struct i2c_adapter *adap, int addr,
- unsigned short flags, int kind)
-#endif
{
struct dpl3518 *dpl;
struct i2c_client *client;
@@ -365,9 +353,7 @@ static int dpl3518_dev_release(struct inode *inode, struct file *file)
/* ---------------------------------------------------------------------- */
static struct i2c_driver driver = {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,54)
.owner = THIS_MODULE,
-#endif
.name = "i2c dpl3518 driver",
.id = I2C_DRIVERID_DPL3518,
.flags = I2C_DF_NOTIFY,