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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 273D6EB64DC for ; Thu, 6 Jul 2023 09:19:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbjGFJTX (ORCPT ); Thu, 6 Jul 2023 05:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjGFJTW (ORCPT ); Thu, 6 Jul 2023 05:19:22 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD49B171D; Thu, 6 Jul 2023 02:19:21 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10762"; a="343144221" X-IronPort-AV: E=Sophos;i="6.01,185,1684825200"; d="scan'208";a="343144221" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2023 02:19:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10762"; a="864032788" X-IronPort-AV: E=Sophos;i="6.01,185,1684825200"; d="scan'208";a="864032788" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP; 06 Jul 2023 02:19:15 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qHL8s-000Tnc-19; Thu, 06 Jul 2023 12:19:14 +0300 Date: Thu, 6 Jul 2023 12:19:14 +0300 From: Andy Shevchenko To: Hans de Goede Cc: "Rafael J . Wysocki" , Sakari Ailus , Laurent Pinchart , Daniel Scally , linux-acpi@vger.kernel.org, Mauro Carvalho Chehab , Kate Hsuan , Hao Yao , Bingbu Cao , linux-media@vger.kernel.org Subject: Re: [PATCH v3 15/18] ACPI: bus: Introduce acpi_match_acpi_device() function Message-ID: References: <20230705213010.390849-1-hdegoede@redhat.com> <20230705213010.390849-16-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230705213010.390849-16-hdegoede@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Wed, Jul 05, 2023 at 11:30:07PM +0200, Hans de Goede wrote: > Some ACPI glue code (1) may want to do an acpi_device_id match while > it only has a struct acpi_device available because the first physical > node may not have been instantiated yet. > > Add a new acpi_match_acpi_device() helper for this, which takes > a "struct acpi_device *" as argument rather then the "struct device *" > which acpi_match_device() takes. > > 1) E.g. code which parses ACPI tables to transforms them > into more standard kernel data structures like fwnodes Looks like it's v1 of my original patch, anyway this is now in Linux Next as 2b5ae9604949 ("ACPI: bus: Introduce acpi_match_acpi_device() helper"). -- With Best Regards, Andy Shevchenko