diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/i2c-algo-bit.h | 1 | ||||
| -rw-r--r-- | include/linux/i2c-algo-pcf.h | 1 | ||||
| -rw-r--r-- | include/linux/i2c-algo-sibyte.h | 33 | ||||
| -rw-r--r-- | include/linux/i2c.h | 14 |
4 files changed, 1 insertions, 48 deletions
diff --git a/include/linux/i2c-algo-bit.h b/include/linux/i2c-algo-bit.h index c0e7fab28ce3..c8f8df25c7e0 100644 --- a/include/linux/i2c-algo-bit.h +++ b/include/linux/i2c-algo-bit.h | |||
| @@ -40,7 +40,6 @@ struct i2c_algo_bit_data { | |||
| 40 | /* local settings */ | 40 | /* local settings */ |
| 41 | int udelay; /* half-clock-cycle time in microsecs */ | 41 | int udelay; /* half-clock-cycle time in microsecs */ |
| 42 | /* i.e. clock is (500 / udelay) KHz */ | 42 | /* i.e. clock is (500 / udelay) KHz */ |
| 43 | int mdelay; /* in millisecs, unused */ | ||
| 44 | int timeout; /* in jiffies */ | 43 | int timeout; /* in jiffies */ |
| 45 | }; | 44 | }; |
| 46 | 45 | ||
diff --git a/include/linux/i2c-algo-pcf.h b/include/linux/i2c-algo-pcf.h index 18b0adf57a3d..9908f3fc4839 100644 --- a/include/linux/i2c-algo-pcf.h +++ b/include/linux/i2c-algo-pcf.h | |||
| @@ -35,7 +35,6 @@ struct i2c_algo_pcf_data { | |||
| 35 | 35 | ||
| 36 | /* local settings */ | 36 | /* local settings */ |
| 37 | int udelay; | 37 | int udelay; |
| 38 | int mdelay; | ||
| 39 | int timeout; | 38 | int timeout; |
| 40 | }; | 39 | }; |
| 41 | 40 | ||
diff --git a/include/linux/i2c-algo-sibyte.h b/include/linux/i2c-algo-sibyte.h deleted file mode 100644 index 03914ded8614..000000000000 --- a/include/linux/i2c-algo-sibyte.h +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2001,2002,2003 Broadcom Corporation | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; either version 2 | ||
| 7 | * of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, write to the Free Software | ||
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef I2C_ALGO_SIBYTE_H | ||
| 20 | #define I2C_ALGO_SIBYTE_H 1 | ||
| 21 | |||
| 22 | #include <linux/i2c.h> | ||
| 23 | |||
| 24 | struct i2c_algo_sibyte_data { | ||
| 25 | void *data; /* private data */ | ||
| 26 | int bus; /* which bus */ | ||
| 27 | void *reg_base; /* CSR base */ | ||
| 28 | }; | ||
| 29 | |||
| 30 | int i2c_sibyte_add_bus(struct i2c_adapter *, int speed); | ||
| 31 | int i2c_sibyte_del_bus(struct i2c_adapter *); | ||
| 32 | |||
| 33 | #endif /* I2C_ALGO_SIBYTE_H */ | ||
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index eb0628a7ecc6..9b5d04768c2c 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
| @@ -64,14 +64,6 @@ extern int i2c_master_recv(struct i2c_client *,char* ,int); | |||
| 64 | */ | 64 | */ |
| 65 | extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); | 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 | |||
| 74 | |||
| 75 | 67 | ||
| 76 | /* This is the very generalized SMBus access routine. You probably do not | 68 | /* This is the very generalized SMBus access routine. You probably do not |
| 77 | want to use this, though; one of the functions below may be much easier, | 69 | want to use this, though; one of the functions below may be much easier, |
| @@ -201,10 +193,6 @@ struct i2c_algorithm { | |||
| 201 | unsigned short flags, char read_write, | 193 | unsigned short flags, char read_write, |
| 202 | u8 command, int size, union i2c_smbus_data * data); | 194 | u8 command, int size, union i2c_smbus_data * data); |
| 203 | 195 | ||
| 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 | |||
| 208 | /* --- ioctl like call to set div. parameters. */ | 196 | /* --- ioctl like call to set div. parameters. */ |
| 209 | int (*algo_control)(struct i2c_adapter *, unsigned int, unsigned long); | 197 | int (*algo_control)(struct i2c_adapter *, unsigned int, unsigned long); |
| 210 | 198 | ||
| @@ -220,7 +208,7 @@ struct i2c_adapter { | |||
| 220 | struct module *owner; | 208 | struct module *owner; |
| 221 | unsigned int id; | 209 | unsigned int id; |
| 222 | unsigned int class; | 210 | unsigned int class; |
| 223 | struct i2c_algorithm *algo;/* the algorithm to access the bus */ | 211 | const struct i2c_algorithm *algo; /* the algorithm to access the bus */ |
| 224 | void *algo_data; | 212 | void *algo_data; |
| 225 | 213 | ||
| 226 | /* --- administration stuff. */ | 214 | /* --- administration stuff. */ |
