]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: i2c: Correct comment nits in dm_i2c_reg_read/write()
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2015 00:15:40 +0000 (18:15 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:01:00 +0000 (08:01 +0200)
Add documentation for the @dev parameter.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
include/i2c.h

index a5498a327a51ae5e68958d782cd7885c3aea9e5e..e1ad8d82cb2d3eff2227217bfd1f83cbff26ff11 100644 (file)
@@ -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