From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v4 03/10] device property: Add functions for accessing node's parents Date: Fri, 30 Aug 2019 15:42:35 +0300 Message-ID: <20190830124235.GD2680@smile.fi.intel.com> References: <20190829101043.24963-4-sakari.ailus@linux.intel.com> <20190829104401.24183-1-sakari.ailus@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190829104401.24183-1-sakari.ailus@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Sakari Ailus Cc: Petr Mladek , linux-kernel@vger.kernel.org, rafael@kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring List-Id: devicetree@vger.kernel.org On Thu, Aug 29, 2019 at 01:44:01PM +0300, Sakari Ailus wrote: > Add two convenience functions for accessing node's parents: > > fwnode_count_parents() returns the number of parent nodes a given node > has. fwnode_get_nth_parent() returns node's parent at a given distance > from the node itself. > > Also reorder fwnode_get_parent() in property.c according to the same order > as in property.h. Same comment as per previous version. -- With Best Regards, Andy Shevchenko