diff options
author | Simon Glass <sjg@chromium.org> | 2015-07-02 18:15:40 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-05 20:57:51 -0600 |
commit | 25a0fb4385a79e6d0b186d1f13a3da0c6797da6d (patch) | |
tree | 3ec6d603ae2a91073cb999b1dbfb6f6f2ffef766 /include/i2c.h | |
parent | 7d7db2225c5e63a389ee04d63919f012e7ba880d (diff) | |
download | u-boot-25a0fb4385a79e6d0b186d1f13a3da0c6797da6d.tar.gz |
dm: i2c: Correct comment nits in dm_i2c_reg_read/write()
Add documentation for the @dev parameter.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h index a5498a327a..e1ad8d82cb 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 |