summaryrefslogtreecommitdiffstats
path: root/platform/endian_little.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-04-21 13:29:33 +0200
committerThomas Heijligen <src@posteo.de>2022-05-08 17:37:45 +0000
commit7228ce007cc42030393b3a33f28b6115e41591b1 (patch)
treef05d46d98809e752e6d711061ef20f8b4d84b4fe /platform/endian_little.c
parent1866deb06d775b9d006c1ef21c99f439677f0f76 (diff)
downloadflashrom-7228ce007cc42030393b3a33f28b6115e41591b1.tar.gz
flashrom-7228ce007cc42030393b3a33f28b6115e41591b1.tar.bz2
flashrom-7228ce007cc42030393b3a33f28b6115e41591b1.zip
platform/swap: move swap inline functions & macros into an own header
These inline functions and macros are only used in platform/endian_(big|little).c and do not need to be compiled into every object which includes `platform.h`. Change-Id: Ib2326e6a4eb5e000a0eace857d040372e2e9e561 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/63825 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'platform/endian_little.c')
-rw-r--r--platform/endian_little.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/endian_little.c b/platform/endian_little.c
index aeb9d5730..690f3839f 100644
--- a/platform/endian_little.c
+++ b/platform/endian_little.c
@@ -16,6 +16,7 @@
*/
#include "platform.h"
+#include "platform/swap.h"
/* convert cpu native endian to little endian */
___return_same(cpu_to_le, 8)