[Crosstoolchain-logs] [device-tree-compiler] 33/357: Use names for output functions in the form dt_to_*() instead of write_dt_*() for consistency with the dt_from_*() input functions.

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 712e52e4386295c6ae9570721c4c91965d747b08
Author: David Gibson <dgibson at sneetch.(none)>
Date:   Wed Oct 26 16:56:26 2005 +1000

    Use names for output functions in the form dt_to_*() instead of
    write_dt_*() for consistency with the dt_from_*() input functions.
---
 dtc.c        | 6 +++---
 dtc.h        | 6 +++---
 flattree.c   | 4 ++--
 treesource.c | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dtc.c b/dtc.c
index c2d24ab..f26b1ec 100644
--- a/dtc.c
+++ b/dtc.c
@@ -183,11 +183,11 @@ int main(int argc, char *argv[])
 	}
 
 	if (streq(outform, "dts")) {
-		write_tree_source(outf, bi);
+		dt_to_source(outf, bi);
 	} else if (streq(outform, "dtb")) {
-		write_dt_blob(outf, bi, outversion);
+		dt_to_blob(outf, bi, outversion);
 	} else if (streq(outform, "asm")) {
-		write_dt_asm(outf, bi, outversion);
+		dt_to_asm(outf, bi, outversion);
 	} else if (streq(outform, "null")) {
 		/* do nothing */
 	} else {
diff --git a/dtc.h b/dtc.h
index e9c473a..be17ad6 100644
--- a/dtc.h
+++ b/dtc.h
@@ -208,14 +208,14 @@ struct boot_info *build_boot_info(struct reserve_info *reservelist,
 
 /* Flattened trees */
 
-void write_dt_blob(FILE *f, struct boot_info *bi, int version);
-void write_dt_asm(FILE *f, struct boot_info *bi, int version);
+void dt_to_blob(FILE *f, struct boot_info *bi, int version);
+void dt_to_asm(FILE *f, struct boot_info *bi, int version);
 
 struct boot_info *dt_from_blob(FILE *f);
 
 /* Tree source */
 
-void write_tree_source(FILE *f, struct boot_info *bi);
+void dt_to_source(FILE *f, struct boot_info *bi);
 struct boot_info *dt_from_source(FILE *f);
 
 /* FS trees */
diff --git a/flattree.c b/flattree.c
index e2cbd25..474f1c1 100644
--- a/flattree.c
+++ b/flattree.c
@@ -329,7 +329,7 @@ static void make_bph(struct boot_param_header *bph,
 		bph->size_dt_strings = cpu_to_be32(strsize);
 }
 
-void write_dt_blob(FILE *f, struct boot_info *bi, int version)
+void dt_to_blob(FILE *f, struct boot_info *bi, int version)
 {
 	struct version_info *vi = NULL;
 	int i;
@@ -397,7 +397,7 @@ static void dump_stringtable_asm(FILE *f, struct data strbuf)
 	}
 }
 
-void write_dt_asm(FILE *f, struct boot_info *bi, int version)
+void dt_to_asm(FILE *f, struct boot_info *bi, int version)
 {
 	struct version_info *vi = NULL;
 	int i;
diff --git a/treesource.c b/treesource.c
index 45c039e..e9bbaa5 100644
--- a/treesource.c
+++ b/treesource.c
@@ -144,7 +144,7 @@ static void write_tree_source_node(FILE *f, struct node *tree, int level)
 }
 
 
-void write_tree_source(FILE *f, struct boot_info *bi)
+void dt_to_source(FILE *f, struct boot_info *bi)
 {
 	struct reserve_info *re;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list