[i2c] [PATCH 13/13] i2c: Drop unimplemented slave functions

Jean Delvare khali at linux-fr.org
Sun Sep 3 22:41:08 CEST 2006


Content-Disposition: inline; filename=i2c-drop-slave-functions.patch

i2c: Drop unimplemented slave functions

Drop the function declarations for slave mode support of i2c adapters.
This was never implemented, and by the time it is I bet we will want
something different anyway.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
 include/linux/i2c.h |   12 ------------
 1 file changed, 12 deletions(-)

--- linux-2.6.18-rc5.orig/include/linux/i2c.h	2006-09-03 16:46:16.000000000 +0200
+++ linux-2.6.18-rc5/include/linux/i2c.h	2006-09-03 17:00:17.000000000 +0200
@@ -64,14 +64,6 @@
  */
 extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
 
-/*
- * Some adapter types (i.e. PCF 8584 based ones) may support slave behaviuor. 
- * This is not tested/implemented yet and will change in the future.
- */
-extern int i2c_slave_send(struct i2c_client *,char*,int);
-extern int i2c_slave_recv(struct i2c_client *,char*,int);
-
-
 
 /* This is the very generalized SMBus access routine. You probably do not
    want to use this, though; one of the functions below may be much easier,
@@ -201,10 +193,6 @@
 	                   unsigned short flags, char read_write,
 	                   u8 command, int size, union i2c_smbus_data * data);
 
-	/* --- these optional/future use for some adapter types.*/
-	int (*slave_send)(struct i2c_adapter *,char*,int);
-	int (*slave_recv)(struct i2c_adapter *,char*,int);
-
 	/* --- ioctl like call to set div. parameters. */
 	int (*algo_control)(struct i2c_adapter *, unsigned int, unsigned long);
 

-- 
Jean Delvare



More information about the i2c mailing list