From: Evgeny Bachinin Date: Mon, 10 Feb 2025 17:50:15 +0000 (+0300) Subject: arm: meson: sm: get rid of SM_CHIP_ID_SIZE X-Git-Tag: v2025.07-rc1~18^2~23^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6d57a5a482861651fcbfd0824206b099c2c6aba;p=thirdparty%2Fu-boot.git arm: meson: sm: get rid of SM_CHIP_ID_SIZE SM_CHIP_ID_SIZE is used nowhere. Moreover, it specifies wrong chip_id size: Amlogic chip_id v1 and v2 is always 16 bytes long. Signed-off-by: Evgeny Bachinin Link: https://lore.kernel.org/r/20250210-meson_chip_id_all_vers-v1-2-b98f8b6880b8@salutedevices.com Signed-off-by: Neil Armstrong --- diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index 4d9f83d3b38..43a259d695b 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -78,7 +78,6 @@ ssize_t meson_sm_write_efuse(uintptr_t offset, void *buffer, size_t size) #define SM_CHIP_ID_LENGTH 119 #define SM_CHIP_ID_OFFSET 4 -#define SM_CHIP_ID_SIZE 12 int meson_sm_get_serial(void *buffer, size_t size) {