i2c-algo-pcf: Add adapter hooks around xfer begin and end
authorDavid Miller <davem@davemloft.net>
Wed, 22 Oct 2008 18:21:30 +0000 (20:21 +0200)
committerJean Delvare <khali@linux-fr.org>
Wed, 22 Oct 2008 18:21:30 +0000 (20:21 +0200)
commit30091404af5a7cd515e7b565df76932e295d8f6f
tree6ce6ecb5707aca55aff260ff3a1ce8a3453be3de
parent08e5338d119daeb3c7746fa80fa916b8d3d48e89
i2c-algo-pcf: Add adapter hooks around xfer begin and end

Some I2C bus implementations need to synchronize with external
entities, such as system firmware, which might also be programming the
same I2C bus.

In order to facilitate this add ->xfer_begin() and ->xfer_end() hooks
which are invoked around pcf_xfer().

[JD: Make these hooks optional.]

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/algos/i2c-algo-pcf.c
include/linux/i2c-algo-pcf.h