diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-01-27 12:14:48 -0500 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-01-27 12:14:48 -0500 |
commit | e48d33193d94175f012c3ed606a1d1e574ed726a (patch) | |
tree | 6bc9c255dbb1dc34b23197bc2d501fc30c9606c1 /include/linux/i2c.h | |
parent | bdc511f438f6ca40307e06edda00331e6ac0f813 (diff) |
i2c: Change prototypes of refcounting functions
Use more standard prototypes for i2c_use_client() and
i2c_release_client(). The former now returns a pointer to the client,
and the latter no longer returns anything. This matches what all other
subsystems do.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: David Brownell <david-b@pacbell.net>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index f7cd2f370c39..78a305bed8eb 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -386,11 +386,8 @@ static inline int i2c_add_driver(struct i2c_driver *driver) | |||
386 | extern int i2c_attach_client(struct i2c_client *); | 386 | extern int i2c_attach_client(struct i2c_client *); |
387 | extern int i2c_detach_client(struct i2c_client *); | 387 | extern int i2c_detach_client(struct i2c_client *); |
388 | 388 | ||
389 | /* Should be used to make sure that client-struct is valid and that it | 389 | extern struct i2c_client *i2c_use_client(struct i2c_client *client); |
390 | is okay to access the i2c-client. | 390 | extern void i2c_release_client(struct i2c_client *client); |
391 | returns -ENODEV if client has gone in the meantime */ | ||
392 | extern int i2c_use_client(struct i2c_client *); | ||
393 | extern int i2c_release_client(struct i2c_client *); | ||
394 | 391 | ||
395 | /* call the i2c_client->command() of all attached clients with | 392 | /* call the i2c_client->command() of all attached clients with |
396 | * the given arguments */ | 393 | * the given arguments */ |