diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2025-09-01 07:56:24 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-09-02 17:58:05 +0200 |
commit | e2d7c1a3cdc46d6b2e8afa8db8a7ef4c2740a2fe (patch) | |
tree | 6a274d06e6166bf5277b6ff6ad99557d1e5efc7a /rust/qemu-api | |
parent | 79d472a51015f9c9ab341a5f56b8c450870c006b (diff) | |
download | qemu-e2d7c1a3cdc46d6b2e8afa8db8a7ef4c2740a2fe.zip qemu-e2d7c1a3cdc46d6b2e8afa8db8a7ef4c2740a2fe.tar.gz qemu-e2d7c1a3cdc46d6b2e8afa8db8a7ef4c2740a2fe.tar.bz2 |
hw/sd/sdcard: Refactor sd_bootpart_offset
This function provides the offset for any partition in the block image,
not only the boot partitions, therefore rename it. Align the constant
names with the numbering scheme in the standard and use constants for
both boot partitions for consistency reasons. There is also no reason to
return early if boot_part_size is zero because the existing code will
provide the right value in that case as well.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <66e9b07476aad61820c4f42f4f984cc90752ba5e.1756706188.git.jan.kiszka@siemens.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'rust/qemu-api')
0 files changed, 0 insertions, 0 deletions