Re: [PATCH 1/3] i2c: qcom-geni: Use the correct return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -	return num;
> +	return ret;

Not quite. Kdoc describes the retval in i2c_transfer.

2136  * i2c_transfer - execute a single or combined I2C message
2137  * @adap: Handle to I2C bus
2138  * @msgs: One or more messages to execute before STOP is issued to
2139  *      terminate the operation; each message begins with a START.
2140  * @num: Number of messages to be executed.
2141  *
2142  * Returns negative errno, else the number of messages executed.

I agree this needs better documentation in i2c.h, I will fix it.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux