]> git.dujemihanovic.xyz Git - u-boot.git/commit
bloblist: Adjust API to align in powers of 2
authorSimon Glass <sjg@chromium.org>
Wed, 27 Dec 2023 21:07:00 +0000 (13:07 -0800)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Dec 2023 14:21:02 +0000 (07:21 -0700)
commit1a2e02f955f98395142415d7c6cc14e4df903969
tree59f3057b5cede46f4dcccf2fa9ecdcea6facf032
parente748e4b780057872b4a7192db87476adaa8b501c
bloblist: Adjust API to align in powers of 2

The updated bloblist structure stores the alignment as a power-of-two
value in its structures. Adjust the API to use this, to avoid needing to
calling ilog2().
Update the bloblist alignment from 16 bytes to 8 bytes.
Drop a stale comment while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Co-developed-by: Raymond Mao <raymond.mao@linaro.org>
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/x86/lib/tables.c
common/bloblist.c
include/bloblist.h
test/bloblist.c