Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13800333pxu; Mon, 4 Jan 2021 05:02:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1Qwqj86y3QGzB9brEH6i1IhTXF2Wy6gWLurchyKgzs4uZfLugI1Mi3xy7tZYx+JjPl4u9 X-Received: by 2002:a17:906:941a:: with SMTP id q26mr66940094ejx.227.1609765326762; Mon, 04 Jan 2021 05:02:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609765326; cv=none; d=google.com; s=arc-20160816; b=LSHhnX+kbJT02Jzx2vPK6BvvPyiwAcL6yDjNDyJfgr1FLodTwVMGgXmz8L7tm4Wj7L bdxgxNPa8rdTsepnojvgm+TpIgUc+CGx9y6rnTaGsBCzES6J5wtlf5cSHOokGoyrXkLh lZizFicJcvtVxl20Q51vyTZqE3QIDd/ezIysGqrsgHh3+friKbaQLgEMzvklrBpUacWs pKgZ2JuXmfK1Xq0mnIfLQec46Y/Y8fSWIkL59493hFHRaCWUvAE6d8i+hdi6CKW7K1HJ lgulZ8GxtQN4O6yG6f1kX9ZccVAEUTCJNir2OJzjfvVX738f1jF+Emvujnu6YnJZHK40 YniA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ggZkcYC9h5eVQbnMgWr/AEjs49D98jiYmnWX9w592LA=; b=zB9yRsFJQEb+v/aqicP34LCE2+p1oygC0ff51j8D0NCWhiZ7hjxXKv6VeGxHhbJIVq Lgncp6gfwoVzgHavZGW0nP46F45VQ6YuM+ovejJyBtOaeaTVAs/QQEu8lRKlQR8aGclh QF5c3HumdeVEn45U3seftIU/xvOOaAa5EOgnUIPNc5QI9XwGc+lBWKy/wdwiM0O17REy /aCRnzwzzUWw3D7IUnnh3ontYsMm1aISZpQKesiiYJVe2Ake2gu0t8mDP2cnr3OjXhKL FSJvM4PZXTmLF65f39dV73Xsawfo/qb3dB9Ycs5qp4FTd3RKRdTCMbH/yhIeVEPiju3/ dcXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RthGD3En; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si32620125edp.294.2021.01.04.05.01.43; Mon, 04 Jan 2021 05:02:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RthGD3En; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbhADM6T (ORCPT + 99 others); Mon, 4 Jan 2021 07:58:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbhADM6T (ORCPT ); Mon, 4 Jan 2021 07:58:19 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2DCCC061574; Mon, 4 Jan 2021 04:57:38 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id d26so32018389wrb.12; Mon, 04 Jan 2021 04:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=ggZkcYC9h5eVQbnMgWr/AEjs49D98jiYmnWX9w592LA=; b=RthGD3EnZ0QY82azYylIrogBzOuAAMaMnijfhP1X2DdqXrhTEPiIcU5VrcujCuQL2q DCZqVEgCC54uR3LGvnOpFgEiwvcn11L2tFFx2I0GPDi2TUH0RMMeAdxeHcu6zwt8JGnS 0YcdUq/y/Gp9AaGaNkMI755ZU5ZrLg54gSfaa8rzEaurBFDeuABmcUtMxq/Cq5cZXwd6 1LDeB9CrRVwxUsgOXI5/y2T89JyLiyz7yvAdDAoLz4eQ/uAnZJgCnKm8G/Zf34K5mXPH 6De2HngJjL8JhC2ku8v8oSb5pUQCfAcRJiWOcweeWqk9ueua30ZTSHvuordU73FUkKTE tu7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ggZkcYC9h5eVQbnMgWr/AEjs49D98jiYmnWX9w592LA=; b=Naqk4RitQDKG+S+EIsuL9m43TcKQv1j6JlsAbvHt9gC1PhltPs9f+OzCFGIe8AFI1V 2SucSP2NOYxo3KWAjDIWLs0E1ylNm2/3s8FxuxcDVw5Gu/uGkmi3aLXSDZ1eIrQfl/tU xE26lRoGSggqDg3wuS9ay4Bl9LHcyGQz8fEOLVti+1rdfL7pEPMfTftVtasIjz+dWNgs 5qIX6PFVv+PW7BHtYSxboJlh+nohqPgVJZLN2Quv+dr4kppEyZjKLOUPpVoFj0fNzfPG pO+yTH0SZ7ztsGITqR0Okkab6oZaCwyb9UtWg2Qfv9uPDl7BqP143pGoSupd3Vb8Y843 f0Kw== X-Gm-Message-State: AOAM5335z8iIus/83o8+i9tDqjj/bR09l3n+wl4fGG2Ma9spUwqknlb5 JmH9TBAZa+5Xk1hkdvfrBhw= X-Received: by 2002:a05:6000:144f:: with SMTP id v15mr65709613wrx.138.1609765056599; Mon, 04 Jan 2021 04:57:36 -0800 (PST) Received: from [192.168.1.211] ([2.29.208.120]) by smtp.gmail.com with ESMTPSA id i16sm87087466wrx.89.2021.01.04.04.57.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Jan 2021 04:57:36 -0800 (PST) Subject: Re: [PATCH v4 13/15] acpi: Add acpi_dev_get_next_match_dev() and helper macro To: Andy Shevchenko 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 References: <20210103231235.792999-1-djrscally@gmail.com> <20210103231235.792999-14-djrscally@gmail.com> <20210104124228.GU4077@smile.fi.intel.com> From: Daniel Scally Message-ID: <589d7078-60e6-ae2b-dbb2-bbe5b8ef7775@gmail.com> Date: Mon, 4 Jan 2021 12:57:34 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210104124228.GU4077@smile.fi.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/01/2021 12:42, Andy Shevchenko wrote: > 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. > I guess we need Rafael's blessing on this. For this one yes