]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cbf165f97205e5222d58386c5d7715ee80b2e33
treee4e524eafda521834d3d2a7fa8a6118e1bae3c32
parent31a4a50db464d0e002d0a5a90793e4a8d132b6cf
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