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 C610CC6FA99 for ; Fri, 10 Mar 2023 16:42:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6500B85F4D; Fri, 10 Mar 2023 17:42:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="EJ0NfSsv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A6D485F56; Fri, 10 Mar 2023 17:42:42 +0100 (CET) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CDC8F85F18 for ; Fri, 10 Mar 2023 17:42:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x530.google.com with SMTP id cw28so22906033edb.5 for ; Fri, 10 Mar 2023 08:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678466558; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=0hZJDZb3kQ5YMJidOV4uVQG3X8I0WQ+8Fg0dm2t0ZRU=; b=EJ0NfSsvMDpE/JQT5qKmMKYOUEr8RWmj6iJb2bqHYtmvLwUhlwV1zJjEUl9z+PJ2m6 ERrDVOkuk/wqF5+E9mx+7qAADwGMlKzBToZbaLqCvVzvorTItA2oJR3QObKLI2hJie88 AOcBODaFJd6jFShpXjQCagqda6d2fVXpKu0oYiAeFPNiYtqtGdlaJ520uGg6Ho3fUR+N WEmXReuAIvQb/xn+CCSu7fReZ5z7IpFJRbLg1Sb98pX68OKim0NkLN+fIK0Qpdpgm/+N p40710HYfgRSMrUWkf0fONgV8YmBDRrg6g66DdGk9k8UqalWqlHBuxDoxQQ+EsYsIP83 bG5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678466558; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0hZJDZb3kQ5YMJidOV4uVQG3X8I0WQ+8Fg0dm2t0ZRU=; b=aMSExNAFS9SGMDhMIqJEeEUpDqWjpqtpIu9oMdfAArcdliAHnXgG6dTT0tBHC7nyfu gumEnil3FDqAY+h9JJgoxjOBJYQPjLWdDpEHXNwEuOOUc/1DdWfxk+9uaXS5ZkEkXQiq jyHAgy+OCbHDXC/Y/x4s3DfSY23+j9lb4eBi/foESXS/z1nVvMy241JHCM/Xj/ilChE5 rCRb5vKLgvLcyetW8t0qSdCbETJVMIePfLGiID0Z8weCddww7/SRyopEBXWYBbMAHsff 1eoBUx7waSgY6anlsfBbaC2R8CG2PoUj2d6Q2BXYYscwAw0PvGyShcYZmu3e1b18ODNg 40SQ== X-Gm-Message-State: AO0yUKVvziuIB5RPa4W+8/DfQerTYLz1FP/cj3L7BfzbYHHmWavPx1WB QXQ4eLdVxsIrvYBQhWVvuog= X-Google-Smtp-Source: AK7set9Hp9DGbxxFHdA2AwXVW3M8GDkHpW0gC2o+3AF0PbT3oF9XoBslUp1HVXknGsxyO0HIlZbpOA== X-Received: by 2002:aa7:d58b:0:b0:4ad:7ad3:de18 with SMTP id r11-20020aa7d58b000000b004ad7ad3de18mr24025709edq.28.1678466558411; Fri, 10 Mar 2023 08:42:38 -0800 (PST) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id u13-20020a50950d000000b004af70c546dasm208438eda.87.2023.03.10.08.42.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 08:42:38 -0800 (PST) Message-ID: <11bf71b3-93d4-e8ef-0f2f-f7f4b0cffd13@gmail.com> Date: Fri, 10 Mar 2023 17:42:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Johan Jonker Subject: [PATCH v7 10/23] include: dm: ofnode: fix headers To: dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, yifeng.zhao@rock-chips.com References: <4caa17bc-6d32-5b07-68f3-f5ced40bfcbb@gmail.com> Content-Language: en-US In-Reply-To: <4caa17bc-6d32-5b07-68f3-f5ced40bfcbb@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.8 at phobos.denx.de X-Virus-Status: Clean When fdt_addr_t and phys_addr_t are split it turns out that the header don't match the functions, so fix the headers. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- include/dm/ofnode.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 3f6b0843..cd966f6a 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -678,8 +678,8 @@ int ofnode_read_size(ofnode node, const char *propname); * @size: Pointer to size of the address * Return: address, or FDT_ADDR_T_NONE if not present or invalid */ -phys_addr_t ofnode_get_addr_size_index(ofnode node, int index, - fdt_size_t *size); +fdt_addr_t ofnode_get_addr_size_index(ofnode node, int index, + fdt_size_t *size); /** * ofnode_get_addr_size_index_notrans() - get an address/size from a node @@ -695,8 +695,8 @@ phys_addr_t ofnode_get_addr_size_index(ofnode node, int index, * @size: Pointer to size of the address * Return: address, or FDT_ADDR_T_NONE if not present or invalid */ -phys_addr_t ofnode_get_addr_size_index_notrans(ofnode node, int index, - fdt_size_t *size); +fdt_addr_t ofnode_get_addr_size_index_notrans(ofnode node, int index, + fdt_size_t *size); /** * ofnode_get_addr_index() - get an address from a node @@ -707,7 +707,7 @@ phys_addr_t ofnode_get_addr_size_index_notrans(ofnode node, int index, * @index: Index of address to read (0 for first) * Return: address, or FDT_ADDR_T_NONE if not present or invalid */ -phys_addr_t ofnode_get_addr_index(ofnode node, int index); +fdt_addr_t ofnode_get_addr_index(ofnode node, int index); /** * ofnode_get_addr() - get an address from a node @@ -717,7 +717,7 @@ phys_addr_t ofnode_get_addr_index(ofnode node, int index); * @node: node to read from * Return: address, or FDT_ADDR_T_NONE if not present or invalid */ -phys_addr_t ofnode_get_addr(ofnode node); +fdt_addr_t ofnode_get_addr(ofnode node); /** * ofnode_get_size() - get size from a node @@ -1067,8 +1067,8 @@ const void *ofprop_get_property(const struct ofprop *prop, * @sizep: place to put size value (on success) * Return: address value, or FDT_ADDR_T_NONE on error */ -phys_addr_t ofnode_get_addr_size(ofnode node, const char *propname, - phys_size_t *sizep); +fdt_addr_t ofnode_get_addr_size(ofnode node, const char *propname, + fdt_size_t *sizep); /** * ofnode_read_u8_array_ptr() - find an 8-bit array -- 2.20.1