diff options
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 85c517a9b05b..a9cea62fd486 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -296,17 +296,8 @@ extern int i2c_del_driver(struct i2c_driver *); | |||
296 | extern int i2c_attach_client(struct i2c_client *); | 296 | extern int i2c_attach_client(struct i2c_client *); |
297 | extern int i2c_detach_client(struct i2c_client *); | 297 | extern int i2c_detach_client(struct i2c_client *); |
298 | 298 | ||
299 | /* New function: This is to get an i2c_client-struct for controlling the | 299 | /* Should be used to make sure that client-struct is valid and that it |
300 | client either by using i2c_control-function or having the | 300 | is okay to access the i2c-client. |
301 | client-module export functions that can be used with the i2c_client | ||
302 | -struct. */ | ||
303 | extern struct i2c_client *i2c_get_client(int driver_id, int adapter_id, | ||
304 | struct i2c_client *prev); | ||
305 | |||
306 | /* Should be used with new function | ||
307 | extern struct i2c_client *i2c_get_client(int,int,struct i2c_client *); | ||
308 | to make sure that client-struct is valid and that it is okay to access | ||
309 | the i2c-client. | ||
310 | returns -ENODEV if client has gone in the meantime */ | 301 | returns -ENODEV if client has gone in the meantime */ |
311 | extern int i2c_use_client(struct i2c_client *); | 302 | extern int i2c_use_client(struct i2c_client *); |
312 | extern int i2c_release_client(struct i2c_client *); | 303 | extern int i2c_release_client(struct i2c_client *); |