diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-04-03 14:40:18 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-04-16 13:08:16 +0200 |
commit | 8927fbf481248954ca1fc5e652171936b94905ac (patch) | |
tree | 4369d913802a91c0a21ed3d911fa3cf2dfb423b3 /include/linux/i2c-algo-bit.h | |
parent | 252fa60e7054d22c039757d3ef72191d4eb58577 (diff) |
i2c: algo: bit: add flag to whitelist atomic transfers
Use the new xfer_atomic callback to check a newly introduced flag to
whitelist atomic transfers. This will report configurations which
worked accidently.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/i2c-algo-bit.h')
-rw-r--r-- | include/linux/i2c-algo-bit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c-algo-bit.h b/include/linux/i2c-algo-bit.h index 69045df78e2d..7fd5575a368f 100644 --- a/include/linux/i2c-algo-bit.h +++ b/include/linux/i2c-algo-bit.h @@ -33,6 +33,7 @@ struct i2c_algo_bit_data { minimum 5 us for standard-mode I2C and SMBus, maximum 50 us for SMBus */ int timeout; /* in jiffies */ + bool can_do_atomic; /* callbacks don't sleep, we can be atomic */ }; int i2c_bit_add_bus(struct i2c_adapter *); |