Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp252159pxb; Thu, 20 Jan 2022 12:45:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbIvf4J2E8zcLrKY9io+Vpjfs9w8tFIZL6glCAsnBaV0XS0ujXqqUZ71icpCjPvowiQlRs X-Received: by 2002:a17:903:2287:b0:149:fa57:ea87 with SMTP id b7-20020a170903228700b00149fa57ea87mr850139plh.94.1642711524311; Thu, 20 Jan 2022 12:45:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642711524; cv=none; d=google.com; s=arc-20160816; b=0yFTNRFzt8DiOXQAeu37a86+6RjBW611GjbTKdZH3OWAyZk5wB+EShfeAcLSJm9QPA XTk50PxlL1ueRzC2TPS/SFmwkikjCReBd3iAnCDi7zRC6R8Z2n1wjS/zgAyGT+TcC2e+ jcNXboRsUYIubc1NiAgmyNQmvxYO9laPDF5DWDUumQZ0yUCawD+TnlDL+szrgoqY10KJ rJY+/wEgdZ5OcNLEeCS/4ETVJDsKZ47rRN6rsOIroGXnoMcz3Elk5lLPqrjCDNmbgJmr ihG4xrWRU7V4yoab1jxXoIY7eSdvykz24RLqPQOm9KRffVO4zQtg/QfpF0xziQJ1ZAH4 7YNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZyFhEK/VvCXOqYM0z8F6xxJ3dnN2fvgvz3jo1293DAY=; b=xL/23hlPk9gOXQtQq+xf+xo9R3bS90gno43sGy09xbkuNidcVhsYIS1i1MAAWWqBgq w8PLx17Sohqvuq/EBa8jItd2Z4xtRev/6j1OTtLM+X8voS31vhbfbfAhHpqPAB+Vr2lU 1zZNLmCBGG+VLkP6dDGjoaZip4L40kuZnlFlE6Ry3fqfKEz6v61hvZ7EOQmfEqsCPm4N UJG2djlgynoGk8kquW/b45Vg428vWvKdsvKM2ZqhVeAhvBnWiba1k+lCF4VCd/BqOaPC SqAmw9TJ/i8zOi9ncjbyFIlerch9CxrkQz/i0Z2OFojaLJuV8yHg77uXhlHAozVe5yLE WnSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=IGFTjLNp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 126si4529918pga.550.2022.01.20.12.45.10; Thu, 20 Jan 2022 12:45:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=IGFTjLNp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347390AbiARRfP (ORCPT + 99 others); Tue, 18 Jan 2022 12:35:15 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:35639 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiARRfO (ORCPT ); Tue, 18 Jan 2022 12:35:14 -0500 Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id EE72D223ED; Tue, 18 Jan 2022 18:35:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1642527312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ZyFhEK/VvCXOqYM0z8F6xxJ3dnN2fvgvz3jo1293DAY=; b=IGFTjLNpJ95roQWKKQLliEpNm3i0GgK36Vc6aPjs9cfrF0+/bKYpwCr1hgwyN8ZhkvS2Tk beYzoR+1bciWUnkEqLHUZGMn5trhj5u+2avaOHpdWh8OfvE6TQ3OMK/PqCov3+ancSC5Vc LfM0+ZD5tWGZ0CukIiszzfplbzXg93w= From: Michael Walle To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Frank Rowand , Michael Walle Subject: [PATCH v3 0/3] of: base: of_parse_phandle() cleanup and new variant Date: Tue, 18 Jan 2022 18:35:01 +0100 Message-Id: <20220118173504.2867523-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the smaller variants of of_parse_phandle() to static inline. It will also introduce a new variant of the function, although it is unused for now. They will be needed when nvmem phandles are modified to take additional arguments and need to retain backwards compatibility with older device trees. Finally, define of_property_read_u{8,16,32,64}_array() unconditionally, these are the last ones, which were defined static inline and had an empty stub if CONFIG_OF wasn't set. Michael Walle (3): of: base: make small of_parse_phandle() variants static inline of: property: define of_property_read_u{8,16,32,64}_array() unconditionally of: base: add of_parse_phandle_with_optional_args() drivers/of/base.c | 128 +------------ include/linux/of.h | 456 +++++++++++++++++++++++++++------------------ 2 files changed, 284 insertions(+), 300 deletions(-) -- 2.30.2