Skip to content
Snippets Groups Projects
Commit 938b05a5 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Tom Rini
Browse files

drivers: serial: document on_baudrate()


Add parameter description.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent f43674cf
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,15 @@ static void serial_null(void) ...@@ -36,7 +36,15 @@ static void serial_null(void)
/** /**
* on_baudrate() - Update the actual baudrate when the env var changes * on_baudrate() - Update the actual baudrate when the env var changes
* *
* @name: changed environment variable
* @value: new value of the environment variable
* @op: operation (create, overwrite, or delete)
* @flags: attributes of environment variable change,
* see flags H_* in include/search.h
*
* This will check for a valid baudrate and only apply it if valid. * This will check for a valid baudrate and only apply it if valid.
*
* Return: 0 on success, 1 on error
*/ */
static int on_baudrate(const char *name, const char *value, enum env_op op, static int on_baudrate(const char *name, const char *value, enum env_op op,
int flags) int flags)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment