summaryrefslogtreecommitdiff
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorNicola Corna <nicola@corna.info>2015-10-29 14:34:23 +0300
committerWolfram Sang <wsa@the-dreams.de>2015-11-30 20:37:24 +0300
commit749de3dac5e4d65cbed3b58f89c56883e31d1a5a (patch)
treee40fc7a5337d0eb7dab61a21586fd60315e5bc41 /include/linux/i2c.h
parent77c680196791e7b13c90b4d475a3d6c96778755c (diff)
downloadlinux-749de3dac5e4d65cbed3b58f89c56883e31d1a5a.tar.xz
i2c: add i2c quirk flag for unsupported clock stretching
Add I2C_AQ_NO_CLK_STRETCH quirk flag, to be used when clock stretching is not supported. Signed-off-by: Nicola Corna <nicola@corna.info> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 768063baafbf..96970024883f 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -493,6 +493,8 @@ struct i2c_adapter_quirks {
/* convenience macro for typical write-then read case */
#define I2C_AQ_COMB_WRITE_THEN_READ (I2C_AQ_COMB | I2C_AQ_COMB_WRITE_FIRST | \
I2C_AQ_COMB_READ_SECOND | I2C_AQ_COMB_SAME_ADDR)
+/* clock stretching is not supported */
+#define I2C_AQ_NO_CLK_STRETCH BIT(4)
/*
* i2c_adapter is the structure used to identify a physical i2c bus along