diff options
author | Tom Rini <trini@konsulko.com> | 2022-01-20 09:39:45 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-20 09:39:45 -0500 |
commit | 280db76f1526c2e3657c013ab679a120eed8e6b7 (patch) | |
tree | 7843623ac19ed2d714792236b2be748270986f9c /scripts | |
parent | 068415eadefbbc81f14d4ce61fcf7a7eb39650d4 (diff) | |
parent | 185f812c419f1b4f0d10d9787d59cf9f11a2a600 (diff) | |
download | u-boot-280db76f1526c2e3657c013ab679a120eed8e6b7.tar.gz |
Merge tag 'doc-2022-04-rc1' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request doc-2022-04-rc1
Replace @return by Return: in code comments.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dtc/libfdt/fdt_rw.c | 2 | ||||
-rw-r--r-- | scripts/dtc/libfdt/libfdt.h | 4 | ||||
-rw-r--r-- | scripts/dtc/srcpos.c | 4 | ||||
-rw-r--r-- | scripts/dtc/srcpos.h | 2 | ||||
-rw-r--r-- | scripts/dtc/util.h | 12 |
5 files changed, 12 insertions, 12 deletions
diff --git a/scripts/dtc/libfdt/fdt_rw.c b/scripts/dtc/libfdt/fdt_rw.c index 08e2981a44f..2eb2b38703b 100644 --- a/scripts/dtc/libfdt/fdt_rw.c +++ b/scripts/dtc/libfdt/fdt_rw.c @@ -123,7 +123,7 @@ static int fdt_splice_string_(void *fdt, int newlen) * @s: string to find/add * @allocated: Set to 0 if the string was found, 1 if not found and so * allocated. Ignored if !fdt_chk_basic() - * @return offset of string in the string table (whether found or added) + * Return: offset of string in the string table (whether found or added) */ static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) { diff --git a/scripts/dtc/libfdt/libfdt.h b/scripts/dtc/libfdt/libfdt.h index 421f90ad93a..d706f85962b 100644 --- a/scripts/dtc/libfdt/libfdt.h +++ b/scripts/dtc/libfdt/libfdt.h @@ -152,7 +152,7 @@ int fdt_next_node(const void *fdt, int offset, int *depth); * * @fdt: FDT blob * @offset: Offset of node to check - * @return offset of first subnode, or -FDT_ERR_NOTFOUND if there is none + * Return: offset of first subnode, or -FDT_ERR_NOTFOUND if there is none */ int fdt_first_subnode(const void *fdt, int offset); @@ -164,7 +164,7 @@ int fdt_first_subnode(const void *fdt, int offset); * * @fdt: FDT blob * @offset: Offset of previous subnode - * @return offset of next subnode, or -FDT_ERR_NOTFOUND if there are no more + * Return: offset of next subnode, or -FDT_ERR_NOTFOUND if there are no more * subnodes */ int fdt_next_subnode(const void *fdt, int offset); diff --git a/scripts/dtc/srcpos.c b/scripts/dtc/srcpos.c index cb6ed0e3e5e..c2978611450 100644 --- a/scripts/dtc/srcpos.c +++ b/scripts/dtc/srcpos.c @@ -66,7 +66,7 @@ static int srcfile_depth; /* = 0 */ * @param dirname Directory to look in, or NULL for none * @param fname Filename to look for * @param fp Set to NULL if file did not open - * @return allocated filename on success (caller must free), NULL on failure + * Return: allocated filename on success (caller must free), NULL on failure */ static char *try_open(const char *dirname, const char *fname, FILE **fp) { @@ -93,7 +93,7 @@ static char *try_open(const char *dirname, const char *fname, FILE **fp) * * @param fname Filename to open * @param fp Returns pointer to opened FILE, or NULL on failure - * @return pointer to allocated filename, which caller must free + * Return: pointer to allocated filename, which caller must free */ static char *fopen_any_on_path(const char *fname, FILE **fp) { diff --git a/scripts/dtc/srcpos.h b/scripts/dtc/srcpos.h index 9ded12a3830..5db32a723e1 100644 --- a/scripts/dtc/srcpos.h +++ b/scripts/dtc/srcpos.h @@ -52,7 +52,7 @@ extern struct srcfile_state *current_srcfile; /* = NULL */ * @param fullnamep If non-NULL, it is set to the allocated filename of the * file that was opened. The caller is then responsible * for freeing the pointer. - * @return pointer to opened FILE + * Return: pointer to opened FILE */ FILE *srcfile_relative_open(const char *fname, char **fullnamep); diff --git a/scripts/dtc/util.h b/scripts/dtc/util.h index 66fba8ea709..211d584435d 100644 --- a/scripts/dtc/util.h +++ b/scripts/dtc/util.h @@ -81,7 +81,7 @@ extern char *join_path(const char *path, const char *name); * * @param data The string to check * @param len The string length including terminator - * @return 1 if a valid printable string, 0 if not + * Return: 1 if a valid printable string, 0 if not */ bool util_is_printable_string(const void *data, int len); @@ -98,7 +98,7 @@ char get_escape_char(const char *s, int *i); * stderr. * * @param filename The filename to read, or - for stdin - * @return Pointer to allocated buffer containing fdt, or NULL on error + * Return: Pointer to allocated buffer containing fdt, or NULL on error */ char *utilfdt_read(const char *filename); @@ -116,7 +116,7 @@ char *utilfdt_read_len(const char *filename, off_t *len); * * @param filename The filename to read, or - for stdin * @param buffp Returns pointer to buffer containing fdt - * @return 0 if ok, else an errno value representing the error + * Return: 0 if ok, else an errno value representing the error */ int utilfdt_read_err(const char *filename, char **buffp); @@ -133,7 +133,7 @@ int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len); * * @param filename The filename to write, or - for stdout * @param blob Poiner to buffer containing fdt - * @return 0 if ok, -1 on error + * Return: 0 if ok, -1 on error */ int utilfdt_write(const char *filename, const void *blob); @@ -144,7 +144,7 @@ int utilfdt_write(const char *filename, const void *blob); * * @param filename The filename to write, or - for stdout * @param blob Poiner to buffer containing fdt - * @return 0 if ok, else an errno value representing the error + * Return: 0 if ok, else an errno value representing the error */ int utilfdt_write_err(const char *filename, const void *blob); @@ -169,7 +169,7 @@ int utilfdt_write_err(const char *filename, const void *blob); * @param fmt Format string to process * @param type Returns type found(s/d/u/x), or 0 if none * @param size Returns size found(1,2,4,8) or 4 if none - * @return 0 if ok, -1 on error (no type given, or other invalid format) + * Return: 0 if ok, -1 on error (no type given, or other invalid format) */ int utilfdt_decode_type(const char *fmt, int *type, int *size); |