From patchwork Thu Nov 22 10:26:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Auer X-Patchwork-Id: 1001670 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aisec.fraunhofer.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 430wqr62gcz9sB5 for ; Thu, 22 Nov 2018 21:37:28 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 4A268C21F85; Thu, 22 Nov 2018 10:34:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 5E950C22031; Thu, 22 Nov 2018 10:28:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 821ACC22019; Thu, 22 Nov 2018 10:27:52 +0000 (UTC) Received: from mail-edgeKA27.fraunhofer.de (mail-edgeka27.fraunhofer.de [153.96.1.27]) by lists.denx.de (Postfix) with ESMTPS id 7C0D8C21F21 for ; Thu, 22 Nov 2018 10:27:47 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2FbAAAO4PJb/xwBYJliGgEBAQEBAgEBAQEHAgEBAQGBZYIEgVY5jG+LHYsUkCkNhGwCg24iOBIBAwEBAgEBAgICaRwMhT4GeRBRITYGDgWDIYFqAxQBqHyHdg2CGQkBh1BFg2aBVz+GeYJ1hQ4Cjw+QMi4HAoERgQkEi16DIAsYgViIACuGeiyOFYlVgV0igVUzGiSDO4YBilo+ATIBjlsBAQ X-IPAS-Result: A2FbAAAO4PJb/xwBYJliGgEBAQEBAgEBAQEHAgEBAQGBZYIEgVY5jG+LHYsUkCkNhGwCg24iOBIBAwEBAgEBAgICaRwMhT4GeRBRITYGDgWDIYFqAxQBqHyHdg2CGQkBh1BFg2aBVz+GeYJ1hQ4Cjw+QMi4HAoERgQkEi16DIAsYgViIACuGeiyOFYlVgV0igVUzGiSDO4YBilo+ATIBjlsBAQ X-IronPort-AV: E=Sophos;i="5.56,253,1539640800"; d="scan'208";a="12041331" Received: from mail-mtaka28.fraunhofer.de ([153.96.1.28]) by mail-edgeKA27.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2018 11:27:48 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C3AgDN3/JbfRBhWMBiHAEBAQQBAQcEAQGBZYM5ITmMb5YxkCkNhGwChA84EgEDAQECAQECFAEBFjojDIU9AwN5EFEhNgYOBYMhgWoDFah7h3YNghkJAYdQRYU9P4Z5gnWFDgKPD5AyLgcCgRGBCQSLXoMgCxiBWIgAK4Z6LI4ViVWBXSCBVjMaJIM7hgGKWj4DMAGOWwEB X-IronPort-AV: E=Sophos;i="5.56,253,1539640800"; d="scan'208";a="19172016" Received: from fgdemucivp01ltm.xch.fraunhofer.de (HELO FGDEMUCIMP11EXC.ads.fraunhofer.de) ([192.88.97.16]) by mail-mtaKA28.fraunhofer.de with ESMTP/TLS/AES256-SHA; 22 Nov 2018 11:27:47 +0100 Received: from muc-nb-035.aisec.fraunhofer.de (10.80.233.50) by FGDEMUCIMP11EXC.ads.fraunhofer.de (10.80.232.42) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 22 Nov 2018 11:27:46 +0100 From: Lukas Auer To: Date: Thu, 22 Nov 2018 11:26:35 +0100 Message-ID: <20181122102637.17361-27-lukas.auer@aisec.fraunhofer.de> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181122102637.17361-1-lukas.auer@aisec.fraunhofer.de> References: <20181122102637.17361-1-lukas.auer@aisec.fraunhofer.de> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.200.1013-24238.005 X-TM-AS-Result: No--1.273900-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Subject: [U-Boot] [PATCH v4 26/28] dm: core: add missing prototype for ofnode_read_u64 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Move prototype location to match the location of the function in ofnode.c include/dm/ofnode.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 2fc9fa39a3..92539b8b5f 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -236,6 +236,16 @@ int ofnode_read_u32_default(ofnode ref, const char *propname, u32 def); */ int ofnode_read_s32_default(ofnode node, const char *propname, s32 def); +/** + * ofnode_read_u64() - Read a 64-bit integer from a property + * + * @node: valid node reference to read property from + * @propname: name of the property to read from + * @outp: place to put value (if found) + * @return 0 if OK, -ve on error + */ +int ofnode_read_u64(ofnode node, const char *propname, u64 *outp); + /** * ofnode_read_u64_default() - Read a 64-bit integer from a property *