i2c: extend documentation about retvals of master_xfer functions
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 24 Jul 2022 18:46:28 +0000 (20:46 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 26 Jul 2022 21:13:36 +0000 (23:13 +0200)
It was stated how the error codes should be. It was not stated what the
regular case should return. Add this.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
include/linux/i2c.h

index fbda5ada2afcaa6a8ca6f365476b04258595b1d7..8eab5017bff30b707046cbf8d87709434a8d0b85 100644 (file)
@@ -537,7 +537,8 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info,
  *
  * The return codes from the ``master_xfer{_atomic}`` fields should indicate the
  * type of error code that occurred during the transfer, as documented in the
- * Kernel Documentation file Documentation/i2c/fault-codes.rst.
+ * Kernel Documentation file Documentation/i2c/fault-codes.rst. Otherwise, the
+ * number of messages executed should be returned.
  */
 struct i2c_algorithm {
        /*