Commit 6d3aae9d74221b00e2cbf50a353527e5a71a58ba

Authored by Jean Delvare
Committed by Greg Kroah-Hartman
1 parent 8f9082c5ce

i2c: Drop unimplemented slave functions

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@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 0 additions and 12 deletions Side-by-side Diff

... ... @@ -64,15 +64,7 @@
64 64 */
65 65 extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
66 66  
67   -/*
68   - * Some adapter types (i.e. PCF 8584 based ones) may support slave behaviuor.
69   - * This is not tested/implemented yet and will change in the future.
70   - */
71   -extern int i2c_slave_send(struct i2c_client *,char*,int);
72   -extern int i2c_slave_recv(struct i2c_client *,char*,int);
73 67  
74   -
75   -
76 68 /* This is the very generalized SMBus access routine. You probably do not
77 69 want to use this, though; one of the functions below may be much easier,
78 70 and probably just as fast.
... ... @@ -200,10 +192,6 @@
200 192 int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr,
201 193 unsigned short flags, char read_write,
202 194 u8 command, int size, union i2c_smbus_data * data);
203   -
204   - /* --- these optional/future use for some adapter types.*/
205   - int (*slave_send)(struct i2c_adapter *,char*,int);
206   - int (*slave_recv)(struct i2c_adapter *,char*,int);
207 195  
208 196 /* --- ioctl like call to set div. parameters. */
209 197 int (*algo_control)(struct i2c_adapter *, unsigned int, unsigned long);