From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A213C433EF for ; Wed, 13 Oct 2021 18:24:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7CBD0610E8 for ; Wed, 13 Oct 2021 18:24:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238475AbhJMS0s (ORCPT ); Wed, 13 Oct 2021 14:26:48 -0400 Received: from mga17.intel.com ([192.55.52.151]:59191 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhJMS0r (ORCPT ); Wed, 13 Oct 2021 14:26:47 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="208300343" X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="208300343" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 11:24:44 -0700 X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="441751910" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.159]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 11:24:41 -0700 Received: from andy by smile with local (Exim 4.95) (envelope-from ) id 1malje-0002nh-H5; Thu, 14 Oct 2021 00:24:26 +0300 Date: Thu, 14 Oct 2021 00:24:26 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Greg Kroah-Hartman , Saravana Kannan , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , ACPI Devel Maling List , linux-i2c , Mika Westerberg , Linus Walleij , Bartosz Golaszewski , Wolfram Sang Subject: Re: [PATCH v3 1/3] driver core: Provide device_match_acpi_handle() helper Message-ID: References: <20211007171815.28336-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Wed, Oct 13, 2021 at 07:47:37PM +0200, Rafael J. Wysocki wrote: > On Thu, Oct 7, 2021 at 7:18 PM Andy Shevchenko > wrote: > > > > We have couple of users of this helper, make it available for them. > > "a couple"? Yep. > > EXPORT_SYMBOL(device_match_acpi_dev); > > > > +int device_match_acpi_handle(struct device *dev, const void *handle) > > Hmmm. Should the second arg be of type acpi_handle? acpi_handle is not defined as struct and it means the header, where the prototype is declared, will require acpi.h to be included. Besides that the whole set of device_match_*() is done by the same prototype, so it can be used in bus_find_device() calls. > And doesn't this function belong to the ACPI core? It is related to > acpi_bus_get_device() and such which are located there. Same as above. I don't think so. -- With Best Regards, Andy Shevchenko