]> err.no Git - linux-2.6/commitdiff
i2c-dev: Delete empty detach_client callback
authorJean Delvare <khali@linux-fr.org>
Mon, 14 Jul 2008 20:38:34 +0000 (22:38 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Mon, 14 Jul 2008 20:38:34 +0000 (22:38 +0200)
Implementing detach_client is optional, so there is no point in
an empty implementation.

Likewise, i2c driver IDs are optional, and we don't need one.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-dev.c
include/linux/i2c-id.h

index e96d98696782d230bb7b7070b7be1d67c75d289c..50df53640c78562688900611f0d8e038b5b27b18 100644 (file)
@@ -548,19 +548,12 @@ static int i2cdev_detach_adapter(struct i2c_adapter *adap)
        return 0;
 }
 
-static int i2cdev_detach_client(struct i2c_client *client)
-{
-       return 0;
-}
-
 static struct i2c_driver i2cdev_driver = {
        .driver = {
                .name   = "dev_driver",
        },
-       .id             = I2C_DRIVERID_I2CDEV,
        .attach_adapter = i2cdev_attach_adapter,
        .detach_adapter = i2cdev_detach_adapter,
-       .detach_client  = i2cdev_detach_client,
 };
 
 /* ------------------------------------------------------------------------- */
index 988e566d3ed5a2a845ebffd553c8191d0d1527aa..ef13b7c66df32bd5fdbf2c5aa2ee1e0d8fb17a2e 100644 (file)
@@ -91,8 +91,6 @@
 #define I2C_DRIVERID_M52790    95      /* Mitsubishi M52790SP/FP AV switch */
 #define I2C_DRIVERID_CS5345    96      /* cs5345 audio processor       */
 
-#define I2C_DRIVERID_I2CDEV    900
-
 #define I2C_DRIVERID_OV7670 1048       /* Omnivision 7670 camera */
 
 /*