summaryrefslogtreecommitdiff
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-03-29 22:55:30 +0300
committerWolfram Sang <wsa@kernel.org>2021-03-31 10:01:23 +0200
commitc126f7c3b8c41f5ca146e52e70ae927e3be30060 (patch)
tree67af6989f5dd8433984d56f1072e0b8622d47c9d /include/linux/i2c.h
parent8f66edb25c4e10f8380c88f4c097158ff611fd10 (diff)
i2c: Make i2c_recover_bus() to return -EBUSY if bus recovery unimplemented
The i2c_recover_bus() returns -EOPNOTSUPP if bus recovery isn't wired up by the bus driver, which the case for Tegra I2C driver for example. This error code is then propagated to I2C client and might be confusing, thus make i2c_recover_bus() to return -EBUSY instead. Suggested-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'include/linux/i2c.h')
0 files changed, 0 insertions, 0 deletions