Received: by 10.223.185.116 with SMTP id b49csp680644wrg; Wed, 21 Feb 2018 05:18:12 -0800 (PST) X-Google-Smtp-Source: AH8x227AhcRMfz7FVlaJ15Lr6cLQZgkrJhfMBSRJ4J1bIzmnl2Jl7QgesMHO/NldpviiZJvX9sNm X-Received: by 10.99.126.17 with SMTP id z17mr2733668pgc.218.1519219092503; Wed, 21 Feb 2018 05:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519219092; cv=none; d=google.com; s=arc-20160816; b=nBCKvHJcJkIFTVbUzuaniLWysKIim8lzEIwvYUwCzcgndgKh4JNqbFCcEHBceKWhlk 1g4eHgBN34Th3468hOjK3iJaW9NYh605ZGiUqaqWdIUWnGMc/SaZsaQvEPFr25mzyjBM ICoIwnKSnHdFb3bRj4LAraLyxLmXAP4zAztec3qsRRCUHok8H5a6XtB3qIntdpu5vNyR 12+lSsM0mSOmQQfT14CePY02tifqBZnqlUTYrxWOu+cr9EtxYcVs011qRoB8dQyKcL3Z NstyG+FiEI3xerxRC390grJbHhvtzahgC+qwyVIyVgZa+SECG2i4fG3WzZ2p8cf1uvfE nH0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=EwztnIJeebYjSpQGzVD42WrvYFrfKTKVYXOQCd1muPE=; b=hJpcL7VfBx2jxLlRqXDB77PPZzJkVht84ruzzZHDe7yKKSmHpI1TBhpTnC+K5q2ldK CC7JFA/bAcWWDz9F6a7l8MZtLdeZVPSVrfAjYWT2jvsqmtZFvhRPYLKEiVAjdN42nsFr 1SoRuHrE63ErXcEd1Sz2A22/PcLBxaa6Je4Y5ATFKTEVlfOUELmjVYJd6eQvl64DIOb6 Yxo+ID/C35Z5ilPwxUrfOP8Q55uG0rSpElNvW0nqLfIvv8gglUoMx3qS7K8woM9pKxSF NPjkw5BlgRyNGjRe7OpcYJLN5H2KAQvtcYpX5+ImhyIrScI8UnHE+VTws2pIm+N4vW45 hY2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FkkuolzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si2864581plb.482.2018.02.21.05.17.57; Wed, 21 Feb 2018 05:18:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FkkuolzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754012AbeBUMPB (ORCPT + 99 others); Wed, 21 Feb 2018 07:15:01 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:47267 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751346AbeBUMO6 (ORCPT ); Wed, 21 Feb 2018 07:14:58 -0500 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id ED980200D4; Wed, 21 Feb 2018 13:13:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1519215195; bh=jf3tHQvpFPBfT+W5PqkhyuJ8qkAqF3hd0aNzbJYawmQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FkkuolzWpXNydxNCAO+FxBuBvn8s+8uCXhJXTD307jQZlA+BN2GqJL7iMBX+qUsBu sqvtk910BV/knMpA2jo8TB6WZteui/iTdLHaTpjQIHP0kGOGc4ptO8XxAUWq0Bn4+8 pRs/qu32Sbk/5ZySBykMCruMeTIWvKl2I0nG6d/s= From: Laurent Pinchart To: Geert Uytterhoeven Cc: Laurent Pinchart , DRI Development , Linux-Renesas , Pantelis Antoniou , Rob Herring , Frank Rowand , Matt Porter , Koen Kooi , Guenter Roeck , Marek Vasut , Wolfram Sang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux I2C Subject: Re: [PATCH v4 03/16] of: dynamic: Add __of_node_dupv() Date: Wed, 21 Feb 2018 14:15:39 +0200 Message-ID: <8443535.FeXUiDPB9F@avalon> Organization: Ideas on Board Oy In-Reply-To: References: <20180220231046.32638-1-laurent.pinchart+renesas@ideasonboard.com> <20180220231046.32638-4-laurent.pinchart+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Wednesday, 21 February 2018 12:26:45 EET Geert Uytterhoeven wrote: > On Wed, Feb 21, 2018 at 12:10 AM, Laurent Pinchart wrote: > > From: Pantelis Antoniou > > > > Add an __of_node_dupv() private method and make __of_node_dup() use it. > > This is required for the subsequent changeset accessors which will > > make use of it. > > > > Signed-off-by: Pantelis Antoniou > > Signed-off-by: Laurent Pinchart > > > > --- > > > > drivers/of/dynamic.c | 29 +++++++++++++++++++++++------ > > 1 file changed, 23 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c > > index 7bb33d22b4e2..4ffd04925fdf 100644 > > --- a/drivers/of/dynamic.c > > +++ b/drivers/of/dynamic.c > > @@ -382,8 +382,9 @@ struct property *__of_prop_dup(const struct property > > *prop, gfp_t allocflags)> > > } > > > > /** > > > > - * __of_node_dup() - Duplicate or create an empty device node > > dynamically. > > - * @fmt: Format string (plus vargs) for new full name of the device node > > + * __of_node_dupv() - Duplicate or create an empty device node > > dynamically. + * @fmt: Format string for new full name of the device node > > + * @vargs: va_list containing the arugments for the node full name > > > > * > > * Create an device tree node, either by duplicating an empty node or by > > allocating * an empty one suitable for further modification. The node > > data are> > > @@ -391,17 +392,15 @@ struct property *__of_prop_dup(const struct property > > *prop, gfp_t allocflags)> > > * OF_DETACHED bits set. Returns the newly allocated node or NULL on out > > of > > * memory error. > > */ > > > > -struct device_node *__of_node_dup(const struct device_node *np, const > > char *fmt, ...) +struct device_node *__of_node_dupv(const struct > > device_node *np, > > static, cfr. > https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/co > mmit/?h=topic/overlays&id=c45324e1807dd708344c9a478b777b68aca11cdf I'll fix that in the next version. -- Regards, Laurent Pinchart