Skip to contentSkip to conversation

drivers: serial: document on_baudrate()

PATCH New Heinrich Schuchardt 2 participants 2 messages Jul 29, 2018 – Aug 11, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: serial: document on_baudrate()

Add parameter description.

---
 drivers/serial/serial.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/serial/serial.c +8 -0
index 63b232b536c..c84fd83f210 100644
@@ -36,7 +36,15 @@ static void serial_null(void)
 /**
  * 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.
+ *
+ * Return:	0 on success, 1 on error
  */
 static int on_baudrate(const char *name, const char *value, enum env_op op,
 	int flags)
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 drivers: serial: document on_baudrate()

Quoted 3 lines · Heinrich Schuchardt

Add parameter description.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180810/c0b9bdc9/attachment.sig>