Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13859220pxu; Mon, 4 Jan 2021 06:29:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzml1jYPQNiFAerMiIkiGxV6rHHK2lvs9QzS2rsngXZjR6otp0Xto2lQB/Gsgl16apx/+dq X-Received: by 2002:a17:906:6b88:: with SMTP id l8mr66778763ejr.482.1609770552873; Mon, 04 Jan 2021 06:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609770552; cv=none; d=google.com; s=arc-20160816; b=B+y/d43hT1r0IXZpNC4k5nCZmWvYWriW/O5ebwTKts20GmuNYm/hy1Qa6uZzpLaQoQ ILTN+Vvo8pqcfpx+hniaTy4bHvyDS4KnV0WDcdqCT2MYRF4+wfzxj4HU7IUSvvvCM5b3 zAWAyqyV1+M7AmSjkeWAYuH6lxm8r8eAvIsWGhSnOV0GcV9ebW8fMmPJa3zBape2Rn2r rOWCBkkqzGvB/BJL6ANmYutYb5oCdxFJdCiyQKTeDQnRTmtG7IfeyajP4AvTEMS8w1dN ZFeuLPxrfRh9r/VyOv1ZJKZc4mkARwTBh6MVfCX0J0BjFMMC5+jKO8gKDmEAtY98CB0V 0ZTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=3WcoVPmUhzfVYdGzs+Tndl2H3HBH2XPLLIiC4ZzlUKk=; b=M3TEVT3Uf39uyoBFJILywKl2u/0MFUTx2djybwYpf42OkrhtdvT9fSHOp6PdVSA1EY xwx4HlJ+31dSIIXYp5NJM3SPo2DskTeA4kD2CsTLOIfOuKC44ImCKxGPqDz6qRwbntYc 2migJMxEf4wyInT3kUBTiSiI5MA/Bf10wLzeJJP4ApBHY1kl0LX8e2R2k16PQ85YxcC1 RjCOKpMOkpP+f+tbSRo3M/LgjuGRSG2ivbFWedBnbQcQ6Ab7KuinmHT1CWTC8FoqdF9Z EZpGuDCGItXj/cma8ZyZ8aXoSYPXDjaIqiph5lJD4WkXM5sFHov+/MgTc2p+n1EhmWAN U/TA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq17si21961151ejc.136.2021.01.04.06.28.49; Mon, 04 Jan 2021 06:29:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727336AbhADO05 (ORCPT + 99 others); Mon, 4 Jan 2021 09:26:57 -0500 Received: from mga09.intel.com ([134.134.136.24]:59985 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726779AbhADO05 (ORCPT ); Mon, 4 Jan 2021 09:26:57 -0500 IronPort-SDR: TxDkdx2CX2GCnQs5j0FtRSvNjx8NnDr4wnuTs/5h4SpHMY1ZUMGctGJsufh/lYL0WEfFzy/i42 zjEpRcMeWtbQ== X-IronPort-AV: E=McAfee;i="6000,8403,9853"; a="177113868" X-IronPort-AV: E=Sophos;i="5.78,474,1599548400"; d="scan'208";a="177113868" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 06:25:30 -0800 IronPort-SDR: 4F31ycCsW+RpBBzvfzihxYCk+fn+W8VV2zGwWvdBPVt3c9/9YKeMUj0egE8GYdmxEU1VhUo/qo yND/eLd3Nwqg== X-IronPort-AV: E=Sophos;i="5.78,474,1599548400"; d="scan'208";a="461961604" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 06:25:24 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kwQoT-001ay9-TK; Mon, 04 Jan 2021 16:26:25 +0200 Date: Mon, 4 Jan 2021 16:26:25 +0200 From: Andy Shevchenko To: Daniel Scally Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-media@vger.kernel.org, devel@acpica.org, gregkh@linuxfoundation.org, rjw@rjwysocki.net, sergey.senozhatsky@gmail.com, mchehab@kernel.org, lenb@kernel.org, yong.zhi@intel.com, sakari.ailus@linux.intel.com, bingbu.cao@intel.com, tian.shu.qiu@intel.com, robert.moore@intel.com, erik.kaneda@intel.com, pmladek@suse.com, rostedt@goodmis.org, linux@rasmusvillemoes.dk, laurent.pinchart+renesas@ideasonboard.com, jacopo+renesas@jmondi.org, kieran.bingham+renesas@ideasonboard.com, hverkuil-cisco@xs4all.nl, m.felsch@pengutronix.de, niklas.soderlund+renesas@ragnatech.se, slongerbeam@gmail.com, heikki.krogerus@linux.intel.com, linus.walleij@linaro.org Subject: Re: [PATCH v4 13/15] acpi: Add acpi_dev_get_next_match_dev() and helper macro Message-ID: <20210104142625.GX4077@smile.fi.intel.com> References: <20210103231235.792999-1-djrscally@gmail.com> <20210103231235.792999-14-djrscally@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210103231235.792999-14-djrscally@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 03, 2021 at 11:12:33PM +0000, Daniel Scally wrote: > To ensure we handle situations in which multiple sensors of the same > model (and therefore _HID) are present in a system, we need to be able > to iterate over devices matching a known _HID but unknown _UID and _HRV > - add acpi_dev_get_next_match_dev() to accommodate that possibility and > change acpi_dev_get_first_match_dev() to simply call the new function > with a NULL starting point. Add an iterator macro for convenience. Since v5, also please update prefix in the Subject here to be "ACPI / bus: ". -- With Best Regards, Andy Shevchenko