[Concept,15/25] uuid: Add a constant for the length of a UUID

Message ID 20250903133639.3235920-16-sjg@u-boot.org
State New
Headers
Series Selection of devicetree using CHIDs |

Commit Message

Simon Glass Sept. 3, 2025, 1:36 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

This is always 16 bytes. Define a constant, so we can use that rather
than open-coding the value.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/u-boot/uuid.h | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/include/u-boot/uuid.h b/include/u-boot/uuid.h
index 940e7a32fe8..10fd51e13df 100644
--- a/include/u-boot/uuid.h
+++ b/include/u-boot/uuid.h
@@ -85,6 +85,8 @@  struct uuid {
 #define UUID_VARIANT_SHIFT	7
 #define UUID_VARIANT		0x1
 
+#define UUID_LEN		16
+
 int uuid_str_valid(const char *uuid);
 
 /*