Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp784312rwb; Thu, 19 Jan 2023 02:38:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvU7yzG2JbyntoP3Nqy6mnyn6MQgiEyQesZsPT9FRrWLiyfVipAbK6YehhP0OsZZT7NKJ/w X-Received: by 2002:a17:90a:428c:b0:223:b920:28df with SMTP id p12-20020a17090a428c00b00223b92028dfmr10332552pjg.29.1674124719060; Thu, 19 Jan 2023 02:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674124719; cv=none; d=google.com; s=arc-20160816; b=qPRaMglasbQNcMtGOiDNTO3fiASi0pVNf+k0vRFGJXgyKnn2YZayTt2m4FDS6GRKdC GPqcxs/9rAwWLjoqyC3RG/6+zgSlJHaWJ/zMBBRnri1zpDsFA+TX9xjr1QXv6kp1z7tJ sq4Ou0IXsAH+52GlThO59kl05/W0HuX0wsCWyPqQ5JXWhqGzHWr25tJAYFUwL1EFg9nb MTKK9CqB9CVrY1HW5M8DFpuQtz0vWPD7711xmk3S3qRbNS3cQ0VIaVTlFXO6fAt414i8 qqkuipnD0K59pFyGRhARJtCKEu6jvcRDFKWpBhxuXe1rql3un9/82dvn9aPhns97rEYJ Qd9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9RXda3BRvN54SfMx5REMMHiqm2DwpC3YHc0X3m8bSGk=; b=UlcQva1eUfehGlOxhRBWALuw8LF2+CT7hfKvuUj3h3+htKtANiKCE6t/LoVAi1fkcK yeCxDzPP0ii0FxNaEc6ZZj6dklj0yG2/ZaeQpt7SbgHyVd5RDCnFX9W8XkEMlrblwHX0 n3hwFkJCXgAWDFAd76fleFzzol0TDO1zFKHZc56aByOOycybcXT3Ab3RwhStuciu1mJC uWjJC28DO6ftca6KYaDhpb3bW71KnhTHCdiyo0oqIEOuVWw4jdoh5MW0j0SMSVSR8uHx Ybil3cViTbdmSWAZKXGTyNpoA0T+dp2hlDSMBS8IJebCiUhP+IiH4tGWNEJUdEX844ay 1JHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LGRxVIvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 78-20020a630251000000b0043c3f90f7c8si39613956pgc.655.2023.01.19.02.38.33; Thu, 19 Jan 2023 02:38:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LGRxVIvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229751AbjASJ07 (ORCPT + 44 others); Thu, 19 Jan 2023 04:26:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjASJ05 (ORCPT ); Thu, 19 Jan 2023 04:26:57 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42ACC7AB2; Thu, 19 Jan 2023 01:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674120417; x=1705656417; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CMAMmGZK9oCKcRxIz8Vz48WNhapUwOODnM/5yPjQvFg=; b=LGRxVIvlQ51q29EuSv+p3wKfXuc3TwFMvoO2mVIQ2wftsVvcBkl1/Wtc yiZSovoG2270IQStuhZSvgIvyYWiiXkAakXIuxh88CzCoQ7g2pNjCuCIe myI7ErIyamaP+09SUwXZbIFwWamFG1fqRaz5wkrT1NkWmazJ4FUq+xQOY q5LlUp4/rWTeCRLZibnK7bZ2LEdBfEQBQh1DRKPkOXPLJSbIDgVlBU83P HwvqpxDBElC8eXZTCWMtI0ZC217s+aTHpVbFGgIwwXy2r5Y3GHVBxyGUv LqtObML53xGp+r8D79pw9c0GNUlJDlbr9VrraJgPchA0PnVeOp1pOkall Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="322925103" X-IronPort-AV: E=Sophos;i="5.97,228,1669104000"; d="scan'208";a="322925103" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 01:26:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="802565006" X-IronPort-AV: E=Sophos;i="5.97,228,1669104000"; d="scan'208";a="802565006" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 19 Jan 2023 01:26:54 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 19 Jan 2023 11:26:53 +0200 Date: Thu, 19 Jan 2023 11:26:53 +0200 From: Heikki Krogerus To: Andy Shevchenko Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Scally , Sakari Ailus Subject: Re: [PATCH v1 1/1] device property: Make fwnode_graph_for_each_endpoint() consistent Message-ID: References: <20230117152120.42531-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117152120.42531-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 05:21:20PM +0200, Andy Shevchenko wrote: > Make fwnode_graph_for_each_endpoint() consistent with the rest of > for_each_*() definitions in the file, i.e. use the form of > > for (iter = func(NULL); iter; \ > iter = func(iter)) > > as it's done in all the rest of the similar macro definitions. > > Signed-off-by: Andy Shevchenko FWIW: Acked-by: Heikki Krogerus > --- > include/linux/property.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/property.h b/include/linux/property.h > index 37179e3abad5..f090419818a2 100644 > --- a/include/linux/property.h > +++ b/include/linux/property.h > @@ -436,9 +436,9 @@ fwnode_graph_get_endpoint_by_id(const struct fwnode_handle *fwnode, > unsigned int fwnode_graph_get_endpoint_count(struct fwnode_handle *fwnode, > unsigned long flags); > > -#define fwnode_graph_for_each_endpoint(fwnode, child) \ > - for (child = NULL; \ > - (child = fwnode_graph_get_next_endpoint(fwnode, child)); ) > +#define fwnode_graph_for_each_endpoint(fwnode, child) \ > + for (child = fwnode_graph_get_next_endpoint(fwnode, NULL); child; \ > + child = fwnode_graph_get_next_endpoint(fwnode, child)) > > int fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, > struct fwnode_endpoint *endpoint); > -- > 2.39.0 -- heikki