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 406B6C636D4 for ; Thu, 2 Feb 2023 17:59:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6A40D85D91; Thu, 2 Feb 2023 18:59:21 +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="n7o/vOC5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E19985D9A; Thu, 2 Feb 2023 18:59:19 +0100 (CET) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 1D41585D0B for ; Thu, 2 Feb 2023 18:59:17 +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-ej1-x62c.google.com with SMTP id qw12so8352811ejc.2 for ; Thu, 02 Feb 2023 09:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=TWp4g4t5P5mY0zDAhU56RfSfEn/UKC6pJIxrgvxbyFw=; b=n7o/vOC5zUPwfd4D0+ufCAQTyJEhLFnNYU6jj66R8piYZQs/J3t9gKxYzJyiBxW5zU Tz2Q3Fvew2VmCEjkKHcYipLSIZ2qiDoWbmZg1VGkfIwKsonfqJDgE7QIpONKb5LFn0c8 cVYkt8Z1pkFmwkdmNA3x/JtO9HC87re+wk0gm8d0+j6IF1SEGpcHSs37gEK3pj/1lerj Gl3MIF7AahHKgpuBeuRfENo+j7gVq/OzsBjVsT2cll9JJEkH6egY7s0utPOcpe7DhZMX I8n0umozTegVT1sN6S+6ylQBwcVDhE2d14EfZlWg88D1FqcUZ+RUQo9WRxdNJtdHlwDb p0yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=TWp4g4t5P5mY0zDAhU56RfSfEn/UKC6pJIxrgvxbyFw=; b=Ica/Jjmd3/QmHH1V7W9d7QlUIjFZ7JC3t7JVb5+sdJLFckJsONukdb/qj24RGDC6yo a+UmcHqokBSarKqKSp8brngX1aDAMlo8NM0FyPDe5B6x62uaQ5sUuAB/rMQ4G7pnHV0V 17wKZXj+3dVhDPA0GtFGo+aejTiIyanI26j7Kv9AOhDAMEQ5PfddkM9kvLTJeENwtxrZ rs//06tionjfkDFUSIH3E4j8YhxrCCeMG+/+vgLtJ/sr0M+j2DnRZkEfsOCGtD5jOhf4 QerRLyjJ3ZqdeGr/EiEj7X/vuGkfiNMLdWiTQJUSo5P0Rw+sNfebLc3BPQ9FpuQp+55e XHcg== X-Gm-Message-State: AO0yUKUm3XToktmcUH0aTft51Kzp+Tsv8H8n8+gQ1eVYkA7+rwitqIU5 3RR6Ys9rVuYdCMZg4IU6D00= X-Google-Smtp-Source: AK7set/TKabUoMmaqI79unhr6b1CjC2D2pRcXLXQlK+aVPZ9W2eLzVfXAKYng6xd845SvJgouEgPsA== X-Received: by 2002:a17:906:3192:b0:889:58bd:88a3 with SMTP id 18-20020a170906319200b0088958bd88a3mr6873039ejy.68.1675360756740; Thu, 02 Feb 2023 09:59:16 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id ka6-20020a170907920600b0088f8a61eb48sm94573ejb.154.2023.02.02.09.59.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Feb 2023 09:59:16 -0800 (PST) Message-ID: Date: Thu, 2 Feb 2023 18:59:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 From: Johan Jonker Subject: [RFC PATCH v1 2/2] include: dm: ofnode: fix headers To: trini@konsulko.com, dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, u-boot@lists.denx.de References: <873cd740-1909-f0d3-5fef-ff033aed558e@gmail.com> Content-Language: en-US In-Reply-To: <873cd740-1909-f0d3-5fef-ff033aed558e@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.6 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 --- 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 fa986560..287b0c35 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 @@ -1055,8 +1055,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