diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2020-12-16 16:51:38 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-12-16 16:52:17 +1100 |
commit | 7cd5d5fe43d56e3017397fa3a086096e11920c3e (patch) | |
tree | 9858c9702433f2407ac15ac3316806fdab51eaac /libfdt/libfdt_internal.h | |
parent | a7c40409934971ac1bd934ccc411bc6932b86564 (diff) | |
download | dtc-7cd5d5fe43d56e3017397fa3a086096e11920c3e.zip dtc-7cd5d5fe43d56e3017397fa3a086096e11920c3e.tar.gz dtc-7cd5d5fe43d56e3017397fa3a086096e11920c3e.tar.bz2 |
libfdt: Tweak description of assume-aligned load helpers
There's a small inaccuracy in the comment describing these new helpers.
This corrects it, and reformats while we're there.
Fixes: f98f28ab ("libfdt: Internally perform potentially unaligned loads")
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/libfdt_internal.h')
-rw-r--r-- | libfdt/libfdt_internal.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libfdt/libfdt_internal.h b/libfdt/libfdt_internal.h index 8b580aa..16bda19 100644 --- a/libfdt/libfdt_internal.h +++ b/libfdt/libfdt_internal.h @@ -47,13 +47,13 @@ static inline struct fdt_reserve_entry *fdt_mem_rsv_w_(void *fdt, int n) } /* - * Internal helpers to access tructural elements of the device tree blob - * (rather than for exaple reading integers from within property 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 where unaligned memory reads will be - * handled in a graceful manner. If this is not the case there are _unaligned - * versions of these functions that follow and can be used. - * + * Internal helpers to access tructural elements of the device tree + * blob (rather than for exaple reading integers from within property + * 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 + * where unaligned memory reads will be handled in a graceful manner. + * If not the external helpers fdtXX_ld() from libfdt.h can be used + * instead. */ static inline uint32_t fdt32_ld_(const fdt32_t *p) { |