Skip to content

Commit 3c5ca50

Browse files
author
Enric Balletbo i Serra
committed
platform/chrome: cros_ec_spi: Document missing function parameters
Kerneldoc expects all kernel function members to be documented. Fixes the following W=1 level warnings: cros_ec_spi.c:153: warning: Function parameter or member 'ec_dev' not described in 'receive_n_bytes' cros_ec_spi.c:153: warning: Function parameter or member 'buf' not described in 'receive_n_bytes' cros_ec_spi.c:153: warning: Function parameter or member 'n' not described in 'receive_n_bytes' Signed-off-by: Enric Balletbo i Serra <[email protected]> Reviewed-by: Gwendal Grignou <[email protected]>
1 parent 5b30bd3 commit 3c5ca50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/platform/chrome/cros_ec_spi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ static int terminate_request(struct cros_ec_device *ec_dev)
148148
* receive_n_bytes - receive n bytes from the EC.
149149
*
150150
* Assumes buf is a pointer into the ec_dev->din buffer
151+
*
152+
* @ec_dev: ChromeOS EC device.
153+
* @buf: Pointer to the buffer receiving the data.
154+
* @n: Number of bytes received.
151155
*/
152156
static int receive_n_bytes(struct cros_ec_device *ec_dev, u8 *buf, int n)
153157
{

0 commit comments

Comments
 (0)