Skip to contentSkip to conversation

i2c-dev: Delete empty detach_client callback

PATCH New Jean Delvare 1 participant 1 message Jun 26, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c-dev: Delete empty detach_client callback

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.

---
 drivers/i2c/i2c-dev.c  |    7 -------
 include/linux/i2c-id.h |    2 --
 2 files changed, 9 deletions(-)
drivers/i2c/i2c-dev.c +0 -7
@@ -548,19 +548,12 @@ static int i2cdev_detach_adapter(struct 
 	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,
 };
 
 /* ------------------------------------------------------------------------- */
include/linux/i2c-id.h +0 -2
@@ -83,8 +83,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 */
 
 /*
Signature · 6 lines
Jean Delvare

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c