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>
This commit is contained in:
parent
25bb080c18
commit
825146d13d
13 changed files with 22 additions and 22 deletions
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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++;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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: ;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
4
util.h
4
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);
|
||||
|
|
Loading…
Reference in a new issue