[i2c] [PATCH 2/2] i2c: Change prototypes of refcounting functions

David Brownell david-b at pacbell.net
Wed Dec 5 20:35:01 CET 2007


On Wednesday 05 December 2007, Jean Delvare wrote:
> 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.

Oh, I see ... you split one patch into two.  Ignore that part
of my comment to the previous patch.

I'm glad to see I2C growing kerneldoc.  ;)


> + * Each live reference to a client should be refcounted.

The driver model does that automatically as part of driver binding,
so that most drivers don't need to do this explicitly:  they hold
a reference until they're unbound from the device.

- Dave



More information about the i2c mailing list