diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-03-13 14:56:56 -0500 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2010-03-13 14:56:56 -0500 |
commit | 0a9c14751377a1407f5e35791e13651d2fc7801c (patch) | |
tree | e4e524eafda521834d3d2a7fa8a6118e1bae3c32 /include/linux/i2c-algo-bit.h | |
parent | d07b56b3098b9f32ae6dedeacbc594bd01dcfcd1 (diff) |
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>
Diffstat (limited to 'include/linux/i2c-algo-bit.h')
-rw-r--r-- | include/linux/i2c-algo-bit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/i2c-algo-bit.h b/include/linux/i2c-algo-bit.h index 111334f5b922..4f98148c11c3 100644 --- a/include/linux/i2c-algo-bit.h +++ b/include/linux/i2c-algo-bit.h | |||
@@ -36,6 +36,8 @@ struct i2c_algo_bit_data { | |||
36 | void (*setscl) (void *data, int state); | 36 | void (*setscl) (void *data, int state); |
37 | int (*getsda) (void *data); | 37 | int (*getsda) (void *data); |
38 | int (*getscl) (void *data); | 38 | int (*getscl) (void *data); |
39 | int (*pre_xfer) (struct i2c_adapter *); | ||
40 | void (*post_xfer) (struct i2c_adapter *); | ||
39 | 41 | ||
40 | /* local settings */ | 42 | /* local settings */ |
41 | int udelay; /* half clock cycle time in us, | 43 | int udelay; /* half clock cycle time in us, |