Fix some typos

Discovered with the "codespell" utility.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250313191607.1556384-1-thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Thomas Huth 2025-03-13 20:16:07 +01:00 committed by David Gibson
parent da85f91931
commit 205fbef17b
11 changed files with 14 additions and 14 deletions

View file

@ -28,7 +28,7 @@ tools. Allowing libfdt to be used under the terms of the BSD license
makes that it easier for vendors or authors of such software to do so. makes that it easier for vendors or authors of such software to do so.
This does mean that libfdt code could be "stolen" - say, included in a This does mean that libfdt code could be "stolen" - say, included in a
proprietary fimware and extended without contributing those extensions proprietary firmware and extended without contributing those extensions
back to the libfdt mainline. While I hope that doesn't happen, I back to the libfdt mainline. While I hope that doesn't happen, I
believe the goal of allowing libfdt to be widely used is more believe the goal of allowing libfdt to be widely used is more
important than avoiding that. libfdt is quite small, and hardly important than avoiding that. libfdt is quite small, and hardly

2
dtc.c
View file

@ -15,7 +15,7 @@ int quiet; /* Level of quietness */
unsigned int reservenum;/* Number of memory reservation slots */ unsigned int reservenum;/* Number of memory reservation slots */
int minsize; /* Minimum blob size */ int minsize; /* Minimum blob size */
int padsize; /* Additional padding to blob */ int padsize; /* Additional padding to blob */
int alignsize; /* Additional padding to blob accroding to the alignsize */ int alignsize; /* Additional padding to blob according to the alignsize */
int phandle_format = PHANDLE_EPAPR; /* Use linux,phandle or phandle properties */ int phandle_format = PHANDLE_EPAPR; /* Use linux,phandle or phandle properties */
int generate_symbols; /* enable symbols & fixup support */ int generate_symbols; /* enable symbols & fixup support */
int generate_fixups; /* suppress generation of fixups on symbol support */ int generate_fixups; /* suppress generation of fixups on symbol support */

2
dtc.h
View file

@ -38,7 +38,7 @@ extern int quiet; /* Level of quietness */
extern unsigned int reservenum; /* Number of memory reservation slots */ extern unsigned int reservenum; /* Number of memory reservation slots */
extern int minsize; /* Minimum blob size */ extern int minsize; /* Minimum blob size */
extern int padsize; /* Additional padding to blob */ extern int padsize; /* Additional padding to blob */
extern int alignsize; /* Additional padding to blob accroding to the alignsize */ extern int alignsize; /* Additional padding to blob according to the alignsize */
extern int phandle_format; /* Use linux,phandle or phandle properties */ extern int phandle_format; /* Use linux,phandle or phandle properties */
extern int generate_symbols; /* generate symbols for nodes with labels */ extern int generate_symbols; /* generate symbols for nodes with labels */
extern int generate_fixups; /* generate fixups */ extern int generate_fixups; /* generate fixups */

View file

@ -503,7 +503,7 @@ void dt_to_asm(FILE *f, struct dt_info *dti, int version)
* Reserve map entries. * Reserve map entries.
* Align the reserve map to a doubleword boundary. * Align the reserve map to a doubleword boundary.
* Each entry is an (address, size) pair of u64 values. * Each entry is an (address, size) pair of u64 values.
* Always supply a zero-sized temination entry. * Always supply a zero-sized termination entry.
*/ */
asm_emit_align(f, 8); asm_emit_align(f, 8);
emit_label(f, symprefix, "reserve_map"); emit_label(f, symprefix, "reserve_map");

View file

@ -56,8 +56,8 @@ static inline struct fdt_reserve_entry *fdt_mem_rsv_w_(void *fdt, int n)
} }
/* /*
* Internal helpers to access tructural elements of the device tree * Internal helpers to access structural elements of the device tree
* blob (rather than for exaple reading integers from within property * blob (rather than for example reading integers from within property
* values). We assume that we are either given a naturally aligned * values). We assume that we are either given a naturally aligned
* address for the platform or if we are not, we are on a platform * address for the platform or if we are not, we are on a platform
* where unaligned memory reads will be handled in a graceful manner. * where unaligned memory reads will be handled in a graceful manner.

View file

@ -162,7 +162,7 @@ class FdtRo(object):
quiet: Errors to ignore (empty to raise on all errors) quiet: Errors to ignore (empty to raise on all errors)
Returns: Returns:
Typle: Tuple:
Offset of the next node, if any, else a -ve error Offset of the next node, if any, else a -ve error
Depth of the returned node, if any, else undefined Depth of the returned node, if any, else undefined

View file

@ -25,7 +25,7 @@
prop7; prop7;
/* yet /* yet
* another * another
* multline * multiline
* comment * comment
*/ */
prop8; prop8;

View file

@ -65,7 +65,7 @@ int main(int argc, char *argv[])
verbose_printf("Nopulated structure block has new size %d\n", newsize); verbose_printf("Nopulated structure block has new size %d\n", newsize);
/* Replace old strcutre block with the new */ /* Replace old structure block with the new */
fdt2 = xmalloc(fdt_totalsize(fdt) + newsize); fdt2 = xmalloc(fdt_totalsize(fdt) + newsize);

View file

@ -805,7 +805,7 @@ dtc_tests () {
run_dtc_test -I dtb -O dts -o stdin_odts_test_tree1.dtb.test.dts - < test_tree1.dtb run_dtc_test -I dtb -O dts -o stdin_odts_test_tree1.dtb.test.dts - < test_tree1.dtb
run_wrap_test cmp stdin_odts_test_tree1.dtb.test.dts odts_test_tree1.dtb.test.dts run_wrap_test cmp stdin_odts_test_tree1.dtb.test.dts odts_test_tree1.dtb.test.dts
# Check integer expresisons # Check integer expressions
run_test integer-expressions -g integer-expressions.test.dts run_test integer-expressions -g integer-expressions.test.dts
run_dtc_test -I dts -O dtb -o integer-expressions.test.dtb integer-expressions.test.dts run_dtc_test -I dts -O dtb -o integer-expressions.test.dtb integer-expressions.test.dts
run_test integer-expressions integer-expressions.test.dtb run_test integer-expressions integer-expressions.test.dtb

View file

@ -131,7 +131,7 @@ void check_property(void *fdt, int nodeoffset, const char *name,
" differs from stored length (%d != %d)", " differs from stored length (%d != %d)",
name, retlen, proplen); name, retlen, proplen);
if (proplen != len) if (proplen != len)
FAIL("Size mismatch on property \"%s\": %d insead of %d", FAIL("Size mismatch on property \"%s\": %d instead of %d",
name, proplen, len); name, proplen, len);
if (len && memcmp(val, prop->data, len) != 0) if (len && memcmp(val, prop->data, len) != 0)
FAIL("Data mismatch on property \"%s\"", name); FAIL("Data mismatch on property \"%s\"", name);
@ -148,7 +148,7 @@ const void *check_getprop(void *fdt, int nodeoffset, const char *name,
FAIL("fdt_getprop(\"%s\"): %s", name, fdt_strerror(proplen)); FAIL("fdt_getprop(\"%s\"): %s", name, fdt_strerror(proplen));
if (proplen != len) if (proplen != len)
FAIL("Size mismatch on property \"%s\": %d insead of %d", FAIL("Size mismatch on property \"%s\": %d instead of %d",
name, proplen, len); name, proplen, len);
if (len && memcmp(val, propval, len) != 0) if (len && memcmp(val, propval, len) != 0)
FAIL("Data mismatch on property \"%s\"", name); FAIL("Data mismatch on property \"%s\"", name);
@ -172,7 +172,7 @@ const void *check_get_prop_offset(void *fdt, int poffset, const char *exp_name,
return NULL; return NULL;
if (proplen != exp_len) if (proplen != exp_len)
FAIL("Size mismatch on property \"%s\": %d insead of %d", FAIL("Size mismatch on property \"%s\": %d instead of %d",
name, proplen, exp_len); name, proplen, exp_len);
if (exp_len && memcmp(exp_val, propval, exp_len)) if (exp_len && memcmp(exp_val, propval, exp_len))
FAIL("Data mismatch on property \"%s\"", name); FAIL("Data mismatch on property \"%s\"", name);

View file

@ -46,7 +46,7 @@ static void checkfail(const char *fmt)
* Add the given modifier to each of the valid sizes, and check that we get * Add the given modifier to each of the valid sizes, and check that we get
* correct values. * correct values.
* *
* \param modifier Modifer string to use as a prefix * \param modifier Modifier string to use as a prefix
* \param expected_size The size (in bytes) that we expect (ignored for * \param expected_size The size (in bytes) that we expect (ignored for
* strings) * strings)
*/ */