i2c-algo-bit: Add pre- and post-xfer hooks
authorJean Delvare <khali@linux-fr.org>
Sat, 13 Mar 2010 19:56:56 +0000 (20:56 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 13 Mar 2010 19:56:56 +0000 (20:56 +0100)
commit0a9c14751377a1407f5e35791e13651d2fc7801c
treee4e524eafda521834d3d2a7fa8a6118e1bae3c32
parentd07b56b3098b9f32ae6dedeacbc594bd01dcfcd1
i2c-algo-bit: Add pre- and post-xfer hooks

Drivers might have to do random things before and/or after I2C
transfers. Add hooks to the i2c-algo-bit implementation to let them do
so.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Alex Deucher <alexdeucher@gmail.com>
drivers/i2c/algos/i2c-algo-bit.c
include/linux/i2c-algo-bit.h