Message ID | 20250903133639.3235920-16-sjg@u-boot.org |
---|---|
State | New |
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906658; bh=1C+8MIkiIo+LrKsXuKfunJnvbSAJQNuvcbMGyVpnBfo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=oSejcObbxO7eIawIIT7wFnpzwX9s44at+L1hXs/j15RC+oys0iFHGpGUbOn2KFagd 6mKz0meuDsdQ553gEb8Dt7CZJtmnQ+aVEmuaajEERkkHARNx8ymg9vHh66H6AZrVx8 wlodRjVkhFwvCnqiQYb7HPYdFZnTntuwDpfd95UbiGFeM9G8VZOIwgrR1iV8FhiIFY UFAEfbWwERp/QdncHvNMcayGCRM9z0tLPqRsIeWWwtwSzcGtGnD4nmYdFicm5CFP01 AUorhjKMssWP9WGGQPX0o6Pwz3Er3n/GSuOMWNqKnRLfTqmkFit+bVsBDLdMXxme/e U37Oe4cZvszuQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9F07467920 for <u-boot-concept@u-boot.org>; Wed, 3 Sep 2025 07:37:38 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SZaIOA4SHsEV for <u-boot-concept@u-boot.org>; Wed, 3 Sep 2025 07:37:38 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906658; bh=1C+8MIkiIo+LrKsXuKfunJnvbSAJQNuvcbMGyVpnBfo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=oSejcObbxO7eIawIIT7wFnpzwX9s44at+L1hXs/j15RC+oys0iFHGpGUbOn2KFagd 6mKz0meuDsdQ553gEb8Dt7CZJtmnQ+aVEmuaajEERkkHARNx8ymg9vHh66H6AZrVx8 wlodRjVkhFwvCnqiQYb7HPYdFZnTntuwDpfd95UbiGFeM9G8VZOIwgrR1iV8FhiIFY UFAEfbWwERp/QdncHvNMcayGCRM9z0tLPqRsIeWWwtwSzcGtGnD4nmYdFicm5CFP01 AUorhjKMssWP9WGGQPX0o6Pwz3Er3n/GSuOMWNqKnRLfTqmkFit+bVsBDLdMXxme/e U37Oe4cZvszuQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8E1BF67819 for <u-boot-concept@u-boot.org>; Wed, 3 Sep 2025 07:37:38 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906656; bh=xKDS08DQdYTzEFzh3I3Ejmhk1QEwUt7fQctuFN47xPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lbfYuui7w0QOPKWlAxHPUS0Ykh3vxahafABkaFRxQWtemLWAmdQsTBr7Btfl9V7Fy Ps4awhugi8FFu5g0r7cTpdUpvwsDvD0bUvXSrlpj8nkxzDtIsMX3M/42bXrmgG6fSf +Hof/qsqmWEAlJ29v4y/UNmscsyNcPrciQcCbUIenpr5t50DBJmyblm7LB004MGQs3 zqmJqGyWgXa6U8nOqdrLbUhm3NA5yz2GzD2L58CEweKcUudUTFR++m44ehW40699D7 FmIQ5IiXsiwGFOeoDonxx/pJ4Cisz2OIlBkDdM0gsgLZH6cZTyxcNFlM/CKCUgrjk0 1pI8Uthmxs7bA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 982376789D; Wed, 3 Sep 2025 07:37:36 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id WuNz_OY1FxIq; Wed, 3 Sep 2025 07:37:36 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906651; bh=MiYU8ZjET/539OhqEMt8I7LJp/XAttCwEKQeOskdZ5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hWkjqMdZGQJVPsfIn1oK28LIZgpq1s1eK7s6hTxUiaAYz35O23XGZSeC8L36p2Dw4 j1CwVsh/wp2bfCFSd1XcAp0LcP414iZIDMOr86dU8WPPKyx4OmmJ+aOXMcOKKzNMWI +P/otDl5NA6GqGgwCPEOdwGOH0lHb8SJKXToY8fn73JMHkHyKo7LcbO96qhbiI5wXS 0jCmG3G8AANIYreicW9/DG82v9IPAUJbgR+UTLvuy5YuX+E4NM+RE8no5AcQxQK6RZ CXaOR3ZRQMPQ4cGTb9ZC/mUVE7drrtpopCLLJlgmm1fvmWOxQZYIUePl1jF9agddz4 28SAb9Gyt2ckQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 6758B678B2; Wed, 3 Sep 2025 07:37:31 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 3 Sep 2025 07:36:15 -0600 Message-ID: <20250903133639.3235920-16-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250903133639.3235920-1-sjg@u-boot.org> References: <20250903133639.3235920-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: P3KP4ZUYRRWSTJRLRBFNB3R36TK27WW2 X-Message-ID-Hash: P3KP4ZUYRRWSTJRLRBFNB3R36TK27WW2 X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 15/25] uuid: Add a constant for the length of a UUID List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/P3KP4ZUYRRWSTJRLRBFNB3R36TK27WW2/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
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(+)
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); /*