From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DF87C433EF for ; Mon, 17 Jan 2022 15:49:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2EBE2835C8; Mon, 17 Jan 2022 16:49:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="f/XbVrtd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 741BA82DA1; Mon, 17 Jan 2022 16:49:32 +0100 (CET) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B54F083278 for ; Mon, 17 Jan 2022 16:49:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=7016abadf2=patrick.delaunay@foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20HCuI73003013; Mon, 17 Jan 2022 16:49:28 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=qteTFag3sxkUfPRMHyzc7TnauB/xUzo027Og7oXOsZE=; b=f/XbVrtdVhFEiZqX/PXYqWYtP8u2jCbfNlEbF0oSYd/k8oqZkDKMAO1XfCAsSvDVegAD SWvcB/vcFbJDhA8L++f0Qqpz3cllJe3fl4w5hJiGX8TVdYUQGGX5BBpSWm3E6vYx3yLj ZfGWodj0P/THqH4vCCIhLcw9rFiSraYsOaIQBE6tcP6WRmGzfSA0d1ExL3SmLK+vl8CE v++tLzn1Kz9lxLRnqYtmVwt5iiDp4UumshD6TQSKNwb4mQySFhdHcoL6bfqRuNsTGoR5 3XHHrr+Zzdb79qZUNLGCtMWXnBJ30GGxhCt0OePYrYrdqBBje/FJV/KZhD/nKNQH5N2I Kw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3dmq5g5fvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jan 2022 16:49:28 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 25CD5100034; Mon, 17 Jan 2022 16:49:28 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node1.st.com [10.75.127.4]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1EFD521E670; Mon, 17 Jan 2022 16:49:28 +0100 (CET) Received: from localhost (10.75.127.50) by SFHDAG2NODE1.st.com (10.75.127.4) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 17 Jan 2022 16:49:27 +0100 From: Patrick Delaunay To: CC: Patrick Delaunay , Simon Glass , U-Boot STM32 Subject: [PATCH v2 1/3] dm: fix up documentation for uclass_get_by_name_len Date: Mon, 17 Jan 2022 16:49:20 +0100 Message-ID: <20220117164919.v2.1.Id4243a671034f3f7b464dc2753bf03a33ccdd60c@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220117154922.1085936-1-patrick.delaunay@foss.st.com> References: <20220117154922.1085936-1-patrick.delaunay@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE1.st.com (10.75.127.4) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-17_07,2022-01-14_01,2021-12-02_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Fix up the comment for uclass_get_by_name_len() to avoid confusion. Fixes: 4b030177b660 ("dm: core: Allow finding children / uclasses by partial name") Signed-off-by: Patrick Delaunay --- (no changes since v1) include/dm/uclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dm/uclass.h b/include/dm/uclass.h index f1fd2ba246..a606b6a20b 100644 --- a/include/dm/uclass.h +++ b/include/dm/uclass.h @@ -173,10 +173,10 @@ int uclass_get(enum uclass_id key, struct uclass **ucp); const char *uclass_get_name(enum uclass_id id); /** - * uclass_get_by_name() - Look up a uclass by its driver name + * uclass_get_by_name_len() - Look up a uclass by its partial driver name * * @name: Name to look up - * @len: Length of name + * @len: Length of the partial name * @returns the associated uclass ID, or UCLASS_INVALID if not found */ enum uclass_id uclass_get_by_name_len(const char *name, int len); -- 2.25.1