diff options
Diffstat (limited to 'scripts/dtc/util.h')
-rw-r--r-- | scripts/dtc/util.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/scripts/dtc/util.h b/scripts/dtc/util.h index 66fba8ea709b..f6cea8274174 100644 --- a/scripts/dtc/util.h +++ b/scripts/dtc/util.h | |||
@@ -98,16 +98,10 @@ char get_escape_char(const char *s, int *i); | |||
98 | * stderr. | 98 | * stderr. |
99 | * | 99 | * |
100 | * @param filename The filename to read, or - for stdin | 100 | * @param filename The filename to read, or - for stdin |
101 | * @return Pointer to allocated buffer containing fdt, or NULL on error | ||
102 | */ | ||
103 | char *utilfdt_read(const char *filename); | ||
104 | |||
105 | /** | ||
106 | * Like utilfdt_read(), but also passes back the size of the file read. | ||
107 | * | ||
108 | * @param len If non-NULL, the amount of data we managed to read | 101 | * @param len If non-NULL, the amount of data we managed to read |
102 | * @return Pointer to allocated buffer containing fdt, or NULL on error | ||
109 | */ | 103 | */ |
110 | char *utilfdt_read_len(const char *filename, off_t *len); | 104 | char *utilfdt_read(const char *filename, size_t *len); |
111 | 105 | ||
112 | /** | 106 | /** |
113 | * Read a device tree file into a buffer. Does not report errors, but only | 107 | * Read a device tree file into a buffer. Does not report errors, but only |
@@ -116,16 +110,10 @@ char *utilfdt_read_len(const char *filename, off_t *len); | |||
116 | * | 110 | * |
117 | * @param filename The filename to read, or - for stdin | 111 | * @param filename The filename to read, or - for stdin |
118 | * @param buffp Returns pointer to buffer containing fdt | 112 | * @param buffp Returns pointer to buffer containing fdt |
119 | * @return 0 if ok, else an errno value representing the error | ||
120 | */ | ||
121 | int utilfdt_read_err(const char *filename, char **buffp); | ||
122 | |||
123 | /** | ||
124 | * Like utilfdt_read_err(), but also passes back the size of the file read. | ||
125 | * | ||
126 | * @param len If non-NULL, the amount of data we managed to read | 113 | * @param len If non-NULL, the amount of data we managed to read |
114 | * @return 0 if ok, else an errno value representing the error | ||
127 | */ | 115 | */ |
128 | int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len); | 116 | int utilfdt_read_err(const char *filename, char **buffp, size_t *len); |
129 | 117 | ||
130 | /** | 118 | /** |
131 | * Write a device tree buffer to a file. This will report any errors on | 119 | * Write a device tree buffer to a file. This will report any errors on |