i2c: Add an interface to lock/unlock an I2C bus segment
authorJean Delvare <khali@linux-fr.org>
Sat, 7 Nov 2009 12:10:46 +0000 (13:10 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 7 Nov 2009 12:10:46 +0000 (13:10 +0100)
commitafa08974fe80c198b8650f73ed8ab59135ca10d0
treeb649e06dc4cb9fa10b87f1914f05c6ca2ba0d910
parent3806e94b0148350c72f9a3214274026b6ca03f49
i2c: Add an interface to lock/unlock an I2C bus segment

Some drivers need to be able to prevent access to an I2C bus segment
for a specific period of time. Add an interface for them to do so
without twiddling with i2c-core internals.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/sfe4001.c
include/linux/i2c.h