Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp597245iol; Thu, 9 Jun 2022 09:47:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8pmxVTssU3BLY/OiBEs5gKHRMyeQWIZexdi1BrSUKc8u9E7a6EYwY/hv1+ciyLeohdM5c X-Received: by 2002:a05:6402:28a9:b0:42d:cde1:cf87 with SMTP id eg41-20020a05640228a900b0042dcde1cf87mr47226841edb.368.1654793267320; Thu, 09 Jun 2022 09:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654793267; cv=none; d=google.com; s=arc-20160816; b=UMiq0DofiNMfBzDkGs2dmKkMNEnYPiyABp/oDm4kicmWLARkl2jZJ7nNC+lmojAn0/ J37+BhQFL9MBb1jXGG41WWLRKNmzU+F2D7ak/e6DJX9dsyPzRJs045AZ9iXvMyhK0jhN cyM8NZP4zbSFos63p48QihsUoXPNZYtcgHvfflbqxS6TmBzFNn5kleHmPoi+NuGlWAz3 v3ocJCt+R498tzrplxRN+cI1Ec3MiHUH8Xu8PUos6xxRxGhqi/NocBl1kR88c76ISHfa fI9UmZMaBSKGr3ce7m8Gk/QNMypmfUx9LzfZOSDor/OgDoEekAFKvXbIJ5iV1NWjE045 MfQA== 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 :dkim-signature; bh=EZlPy+uqlYTD10ISmGrsRGeN1RnHIbIcc0tjViXbTuA=; b=c/KzfphAyWs7N76eZbOFSa0A9BfXB+xD2Ai1pLADUXWa5UpKK32s4Ma5Ci+y8SDxh6 MGhevXrlNcqRTUlUPfzy41mqm+aiU1O+bhD7c+DANZYP8eB/txQqbjaBN1OFW8R37QHv /XdbVYyquchh+wJ1Rew9i55YaIZdunyNxrN0JcIAw7nUAXXTXIDwf8YnUSnST+kUC4U2 uwwjVvRfNbDAManQZMuc/sbCfPMtnE+wv4qi5J71qkUlAZtvib0JhGKxDpTTXEJp1Xbl G1xnJppsLVifoeKL6v7vIdTKuY1JFPnrCa+0xPRK0gDsVv8od0xYWKr5EG9Wz2rHCcHj nZag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dXJ6baYp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a1709063e5600b00704b3eb881fsi5590896eji.342.2022.06.09.09.47.21; Thu, 09 Jun 2022 09:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dXJ6baYp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344585AbiFIPlF (ORCPT + 99 others); Thu, 9 Jun 2022 11:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236178AbiFIPlE (ORCPT ); Thu, 9 Jun 2022 11:41:04 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CBF91C5915; Thu, 9 Jun 2022 08:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654789263; x=1686325263; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=L2HFR+cNA9oe1wo8qYpDqHV/TYkzOI48bE6rdd6UD88=; b=dXJ6baYpGCZZKcTj3SttjzGyGkaxcJ+mB9qaSSbT84di0KrAsD/oNzpl v7ABzkgYHQKdDWdMMgFmATT68QfhrgAePxS552zpIM35cMVIRdlQ4z+iR wuDhzz1HvsHrZAoN/4Oy8H45B+d2/wxpSAbmU7zIi5rpiF6I0rcC80SBA fXkAa7lIyLsKkyeSY2zj76+ZqpBaF5RkcsiI6nnfR9hN9QHH+85fqKq6p CPAhoB9+xMxRabKo6qdPogaInJVzNWV7HyfoNkklwPdgnfKOMeel9erVy 8B1DhwSdOijPyKUAsgUUMzN5MM0FZVN7el5XWbnqaMGM5Od5gALbI5d4T A==; X-IronPort-AV: E=McAfee;i="6400,9594,10373"; a="278469195" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="278469195" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:41:03 -0700 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="760110181" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:41:01 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nzKHK-000XzE-3M; Thu, 09 Jun 2022 18:40:58 +0300 Date: Thu, 9 Jun 2022 18:40:57 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Linux PM , Mika Westerberg , Hans de Goede , Sakari Ailus Subject: Re: [PATCH v1 10/16] ACPI: bus: Introduce acpi_dev_for_each_child_reverse() Message-ID: References: <1843211.tdWV9SEqCh@kreacher> <2137459.Mh6RI2rZIc@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2137459.Mh6RI2rZIc@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 04:06:21PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make it possible to walk the children of an ACPI device in the revese > order by defining acpi_dev_for_each_child_reverse() in analogy with > acpi_dev_for_each_child(). ... > + return device_for_each_child_reverse(&adev->dev, &adwc, > + acpi_dev_for_one_check); Perhaps one line? -- With Best Regards, Andy Shevchenko