commit | 2ee221c8f7026acc8d4c6a3272d7ef9d5e293d7f | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Mon May 22 14:22:38 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Wed May 31 14:05:34 2023 -0400 |
tree | f79172936480f220dacc9dab8bf8bebb1a80571f | |
parent | 2458a515253e8f04b98270e65ca3bc1b1a82656d [diff] |
asm-generic: simplify unaligned.h The get_unaligned()/put_unaligned() implementations are more complex than necessary. Move everything into one file and use a more compact implementation based on packed struct access and byte swapping macros. This patch is based on the Linux kernel commit 803f4e1eab7a ("asm-generic: simplify asm/unaligned.h") by Arnd Bergmann. Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>