From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753355AbdEIFmT (ORCPT ); Tue, 9 May 2017 01:42:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52996 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbdEIFmS (ORCPT ); Tue, 9 May 2017 01:42:18 -0400 Date: Tue, 9 May 2017 07:42:07 +0200 From: Greg Kroah-Hartman To: Jon Mason Cc: linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH] driver core: platform: Add ability to find resource by name or index Message-ID: <20170509054207.GA23070@kroah.com> References: <1494280788-9588-1-git-send-email-jon.mason@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1494280788-9588-1-git-send-email-jon.mason@broadcom.com> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 08, 2017 at 05:59:48PM -0400, Jon Mason wrote: > It is not always possible to find a resource via the name. This may be > due to using previous versions of device tree without the names or using > ACPI. To allow for resources to be discovered by either the name or the > index, a wrapper was created. It attempts to find the resource via > name, and if unable to find the resource, will then attempt to find the > resource via index. > > Suggested-by: Florian Fainelli > Signed-off-by: Jon Mason > --- > include/linux/platform_device.h | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) Do you have any users for this new function? We don't like adding apis without them... thanks, greg k-h