aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-05-20 10:12:09 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2019-05-21 10:01:01 +1000
commit825146d13dc0430e72c1c65b61cb1aa35e559fca (patch)
treef0f796e83e80895fef64144e8ad327e50e3fdd40
parent25bb080c18d1a8a96760e26257bf8c80ec7fcab4 (diff)
downloaddtc-825146d13dc0430e72c1c65b61cb1aa35e559fca.zip
dtc-825146d13dc0430e72c1c65b61cb1aa35e559fca.tar.gz
dtc-825146d13dc0430e72c1c65b61cb1aa35e559fca.tar.bz2
Fix typos in various documentation and source files
The typos have been discovered with the "codespell" utility. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20190520081209.20415-1-thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--Documentation/manual.txt12
-rw-r--r--README.license4
-rw-r--r--flattree.c2
-rw-r--r--libfdt/fdt_overlay.c4
-rw-r--r--livetree.c2
-rw-r--r--tests/fdtoverlay-runtest.sh2
-rw-r--r--tests/fdtput-runtest.sh2
-rw-r--r--tests/integer-expressions.c2
-rwxr-xr-xtests/run_tests.sh4
-rw-r--r--tests/rw_oom.c2
-rw-r--r--tests/sourceoutput.dts2
-rw-r--r--tests/testutils.c2
-rw-r--r--util.h4
13 files changed, 22 insertions, 22 deletions
diff --git a/Documentation/manual.txt b/Documentation/manual.txt
index db32dd7..adf5ccb 100644
--- a/Documentation/manual.txt
+++ b/Documentation/manual.txt
@@ -37,7 +37,7 @@ The upstream repository is here:
git://git.kernel.org/pub/scm/utils/dtc/dtc.git
https://git.kernel.org/pub/scm/utils/dtc/dtc.git
-The gitweb interface for the upstream respository is:
+The gitweb interface for the upstream repository is:
https://git.kernel.org/cgit/utils/dtc/dtc.git/
@@ -234,7 +234,7 @@ For example:
"childnode at address". It in turn has a string property
called "childprop".
- childnode@addresss {
+ childnode@address {
childprop = "hello\n";
};
@@ -253,7 +253,7 @@ Labels may be applied to nodes or properties. Labels appear
before a node name, and are referenced using an ampersand: &label.
Absolute node path names are also allowed in node references.
-In this exmaple, a node is labled "mpic" and then referenced:
+In this example, a node is labeled "mpic" and then referenced:
mpic: interrupt-controller@40000 {
...
@@ -264,7 +264,7 @@ In this exmaple, a node is labled "mpic" and then referenced:
...
};
-And used in properties, lables may appear before or after any value:
+And used in properties, labels may appear before or after any value:
randomnode {
prop: string = data: "mystring\n" data_end: ;
@@ -418,7 +418,7 @@ value of r3.
among others, by kexec. If you are on an SMP system, this value
should match the content of the "reg" property of the CPU node in
the device-tree corresponding to the CPU calling the kernel entry
- point (see further chapters for more informations on the required
+ point (see further chapters for more information on the required
device-tree contents)
- size_dt_strings
@@ -584,7 +584,7 @@ looks like in practice.
This tree is almost a minimal tree. It pretty much contains the
minimal set of required nodes and properties to boot a linux kernel;
-that is, some basic model informations at the root, the CPUs, and the
+that is, some basic model information at the root, the CPUs, and the
physical memory layout. It also includes misc information passed
through /chosen, like in this example, the platform type (mandatory)
and the kernel command line arguments (optional).
diff --git a/README.license b/README.license
index d56c88f..50e9fca 100644
--- a/README.license
+++ b/README.license
@@ -4,7 +4,7 @@ Licensing and contribution policy of dtc and libfdt
This dtc package contains two pieces of software: dtc itself, and
libfdt which comprises the files in the libfdt/ subdirectory. These
two pieces of software, although closely related, are quite distinct.
-dtc does not incoporate or rely on libfdt for its operation, nor vice
+dtc does not incorporate or rely on libfdt for its operation, nor vice
versa. It is important that these two pieces of software have
different license conditions.
@@ -33,7 +33,7 @@ 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
important than avoiding that. libfdt is quite small, and hardly
rocket science; so the incentive for such impolite behaviour is small,
-and the inconvenience caused therby is not dire.
+and the inconvenience caused thereby is not dire.
Licenses such as the LGPL which would allow code to be used in non-GPL
software, but also require contributions to be returned were
diff --git a/flattree.c b/flattree.c
index acf04c3..f7f7076 100644
--- a/flattree.c
+++ b/flattree.c
@@ -525,7 +525,7 @@ void dt_to_asm(FILE *f, struct dt_info *dti, int version)
fprintf(f, "/* Memory reserve map from source file */\n");
/*
- * Use .long on high and low halfs of u64s to avoid .quad
+ * Use .long on high and low halves of u64s to avoid .quad
* as it appears .quad isn't available in some assemblers.
*/
for (re = dti->reservelist; re; re = re->next) {
diff --git a/libfdt/fdt_overlay.c b/libfdt/fdt_overlay.c
index 2ad93d2..d3e9ab2 100644
--- a/libfdt/fdt_overlay.c
+++ b/libfdt/fdt_overlay.c
@@ -93,11 +93,11 @@ static uint32_t overlay_get_target_phandle(const void *fdto, int fragment)
* @pathp: pointer which receives the path of the target (or NULL)
*
* overlay_get_target() retrieves the target offset in the base
- * device tree of a fragment, no matter how the actual targetting is
+ * device tree of a fragment, no matter how the actual targeting is
* done (through a phandle or a path)
*
* returns:
- * the targetted node offset in the base device tree
+ * the targeted node offset in the base device tree
* Negative error code on error
*/
static int overlay_get_target(const void *fdt, const void *fdto,
diff --git a/livetree.c b/livetree.c
index 7a2e644..ae47e1a 100644
--- a/livetree.c
+++ b/livetree.c
@@ -970,7 +970,7 @@ static void add_local_fixup_entry(struct dt_info *dti,
char **compp;
int i, depth;
- /* walk back retreiving depth */
+ /* walk back retrieving depth */
depth = 0;
for (wn = node; wn; wn = wn->parent)
depth++;
diff --git a/tests/fdtoverlay-runtest.sh b/tests/fdtoverlay-runtest.sh
index c7dbc0f..7c54beb 100644
--- a/tests/fdtoverlay-runtest.sh
+++ b/tests/fdtoverlay-runtest.sh
@@ -1,7 +1,7 @@
#! /bin/sh
# Run script for fdtoverlay tests
-# We run fdtoverlay to generate a target device tree, thn fdtget to check it
+# We run fdtoverlay to generate a target device tree, then fdtget to check it
# Usage
# fdtoverlay-runtest.sh name expected_output dtb_file node property flags value
diff --git a/tests/fdtput-runtest.sh b/tests/fdtput-runtest.sh
index b5beb90..a1f7b85 100644
--- a/tests/fdtput-runtest.sh
+++ b/tests/fdtput-runtest.sh
@@ -1,7 +1,7 @@
#! /bin/sh
# Run script for fdtput tests
-# We run fdtput to update the device tree, thn fdtget to check it
+# We run fdtput to update the device tree, then fdtget to check it
# Usage
# fdtput-runtest.sh name expected_output dtb_file node property flags value
diff --git a/tests/integer-expressions.c b/tests/integer-expressions.c
index ed1f967..b0b2d8b 100644
--- a/tests/integer-expressions.c
+++ b/tests/integer-expressions.c
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
res = fdt_getprop(fdt, 0, "expressions", &reslen);
if (!res)
- FAIL("Error retreiving expression results: %s\n",
+ FAIL("Error retrieving expression results: %s\n",
fdt_strerror(reslen));
if (reslen != (ARRAY_SIZE(expr_table) * sizeof(uint32_t)))
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 07c3489..646a4d9 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -287,7 +287,7 @@ dtc_overlay_tests () {
run_dtc_test -I dts -O dtb -o overlay_overlay_decompile.test.dtb overlay_overlay_decompile.test.dts
run_test dtbs_equal_ordered overlay_overlay.test.dtb overlay_overlay_decompile.test.dtb
- # Test generation of aliases insted of symbols
+ # Test generation of aliases instead of symbols
run_dtc_test -A -I dts -O dtb -o overlay_base_with_aliases.dtb overlay_base.dts
run_test check_path overlay_base_with_aliases.dtb exists "/aliases"
run_test check_path overlay_base_with_aliases.dtb not-exists "/__symbols__"
@@ -874,7 +874,7 @@ fdtput_tests () {
"-ts" "fine wine"
run_wrap_test $DTPUT $dtb -p /you/are/drunk/sir/winston slurp -ts twice
- # Test expansion of the blob when insufficent room for a new node
+ # Test expansion of the blob when insufficient room for a new node
run_wrap_test $DTPUT $dtb -cp "$(cat $text $text)/longish"
# Allowed to create an existing node with -p
diff --git a/tests/rw_oom.c b/tests/rw_oom.c
index a787dc2..24bfe05 100644
--- a/tests/rw_oom.c
+++ b/tests/rw_oom.c
@@ -29,7 +29,7 @@
#include "tests.h"
#include "testdata.h"
-/* This is not derived programatically. May require adjustment to changes. */
+/* This is not derived programmatically. May require adjustment to changes. */
#define SPACE 285
#define CHECK(code) \
diff --git a/tests/sourceoutput.dts b/tests/sourceoutput.dts
index 477762f..5a7459b 100644
--- a/tests/sourceoutput.dts
+++ b/tests/sourceoutput.dts
@@ -2,7 +2,7 @@
/ {
/* Some versions had an off-by-2 bug which caused an abort
- * when outputing labels within strings like this in source
+ * when outputting labels within strings like this in source
* format */
prop1: prop1 = start1: "foo", mid1: "bar" end1: ;
diff --git a/tests/testutils.c b/tests/testutils.c
index a250d5a..24bd81e 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -112,7 +112,7 @@ void check_property(void *fdt, int nodeoffset, const char *name,
prop = fdt_get_property(fdt, nodeoffset, name, &retlen);
verbose_printf("pointer %p\n", prop);
if (! prop)
- FAIL("Error retreiving \"%s\" pointer: %s", name,
+ FAIL("Error retrieving \"%s\" pointer: %s", name,
fdt_strerror(retlen));
tag = fdt32_to_cpu(prop->tag);
diff --git a/util.h b/util.h
index 7658781..fc3c0d0 100644
--- a/util.h
+++ b/util.h
@@ -122,7 +122,7 @@ int utilfdt_read_err(const char *filename, char **buffp, size_t *len);
* stderr.
*
* @param filename The filename to write, or - for stdout
- * @param blob Poiner to buffer containing fdt
+ * @param blob Pointer to buffer containing fdt
* @return 0 if ok, -1 on error
*/
int utilfdt_write(const char *filename, const void *blob);
@@ -133,7 +133,7 @@ int utilfdt_write(const char *filename, const void *blob);
* an error message for the user.
*
* @param filename The filename to write, or - for stdout
- * @param blob Poiner to buffer containing fdt
+ * @param blob Pointer to buffer containing fdt
* @return 0 if ok, else an errno value representing the error
*/
int utilfdt_write_err(const char *filename, const void *blob);