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>
This commit is contained in:
David Gibson 2020-12-16 16:51:38 +11:00
parent a7c4040993
commit 7cd5d5fe43

View file

@ -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 * Internal helpers to access tructural elements of the device tree
* (rather than for exaple reading integers from within property values). We * blob (rather than for exaple reading integers from within property
* assume that we are either given a naturally aligned address for the platform * values). We assume that we are either given a naturally aligned
* or if we are not, we are on a platform where unaligned memory reads will be * address for the platform or if we are not, we are on a platform
* handled in a graceful manner. If this is not the case there are _unaligned * where unaligned memory reads will be handled in a graceful manner.
* versions of these functions that follow and can be used. * If not the external helpers fdtXX_ld() from libfdt.h can be used
* * instead.
*/ */
static inline uint32_t fdt32_ld_(const fdt32_t *p) static inline uint32_t fdt32_ld_(const fdt32_t *p)
{ {