Skip to content
Snippets Groups Projects
Commit 25a0fb43 authored by Simon Glass's avatar Simon Glass
Browse files

dm: i2c: Correct comment nits in dm_i2c_reg_read/write()


Add documentation for the @dev parameter.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarHeiko Schocher <hs@denx.de>
parent 7d7db222
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment