[U-Boot] [PATCH 03/55] dm: i2c: Correct comment nits in dm_i2c_reg_read/write()
Simon Glass
sjg at chromium.org
Fri Jul 3 02:15:40 CEST 2015
Add documentation for the @dev parameter.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
include/i2c.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/i2c.h b/include/i2c.h
index a5498a3..e1ad8d8 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -129,6 +129,7 @@ int dm_i2c_probe(struct udevice *bus, uint chip_addr, uint chip_flags,
*
* This reads a single value from the given address in an I2C chip
*
+ * @dev: Device to use for transfer
* @addr: Address to read from
* @return value read, or -ve on error
*/
@@ -139,6 +140,7 @@ int dm_i2c_reg_read(struct udevice *dev, uint offset);
*
* This writes a single value to the given address in an I2C chip
*
+ * @dev: Device to use for transfer
* @addr: Address to write to
* @val: Value to write (normally a byte)
* @return 0 on success, -ve on error
--
2.4.3.573.g4eafbef
More information about the U-Boot
mailing list