Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp547272iol; Thu, 9 Jun 2022 08:51:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT2/U9joHtSdJlcc2NNOM39grAz93xHpjPvP1WPXZug9IV8/u/8s5Ht6t2cqELf0sxDYqK X-Received: by 2002:a05:6a00:18a7:b0:51b:c63f:1989 with SMTP id x39-20020a056a0018a700b0051bc63f1989mr39246144pfh.49.1654789884828; Thu, 09 Jun 2022 08:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654789884; cv=none; d=google.com; s=arc-20160816; b=wXk06wZI+6qPoRLaDGpyU9qRAATMc7wP57cdt8rXg6mrj7iqh5Uucb8TMwDojl2tWo 9+E+U5QmiqfWmxkExP8JcVrgpJMVOS94GiwwmbKhPTmuL2AwbsBDDtvoxt+PFmxW3Z/k jGR+7G9dhSTpVVOMj0uhnzmwB4zy/BC5nxdknQiZi8F/CiNLSZT+ADkv1fQoWhLlU/u9 IkGtYJKoZW+IEbNr7o4pF4AMNUHNmr0V5xQGbDqALs/ZrnF2qlVZv7Sit1Lt4zWEF++9 PEuZdNCpWvihtEOubFzNndvS+VleX94juvRT9O2NxuptA4GKLZM8/PoRyMYXgeLVe63/ gedA== 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=mY3UE9CiGPgs78TfCdAD3QjNfXxgn1w9ok3/4JoUrIs=; b=R0zJxcS2L4RhfW1qYsf9JtGN6O3e2rjUdoseIuzTMDgWPtSUj+pCx03aYKNR5q30nn OEASaqDkY9x1ZGBDI1mS06K8ee7hgeo7+8pENLujllZXOQNh8qrD/ZF94JTI6t402Gzq kZpTG/Dfne0Wui4xjPLpsXJi+FZi0vuL5VyiCYOXx6EPgKk3+d2l44fz00irOq8ENsmq NiXousnulCTuSyvWZ4Qm40ImQV/ukEjw7sDoM5nwdMITBrxoBi7gzIGetmO6GbXgeGxe Ur4FJMLpCH+OPf4jxtTDzxcuzG/lTxTdfM8Ap+A2uHVemUEEizJ3Yy0GWxU/FBwk5Uqa fHTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hQNfSYEC; 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 t20-20020aa79474000000b0051b904d9c7csi27909331pfq.251.2022.06.09.08.51.10; Thu, 09 Jun 2022 08:51:24 -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=hQNfSYEC; 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 S237685AbiFIP3L (ORCPT + 99 others); Thu, 9 Jun 2022 11:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237634AbiFIP3J (ORCPT ); Thu, 9 Jun 2022 11:29:09 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C2DD31237; Thu, 9 Jun 2022 08:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654788549; x=1686324549; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LcYJN4aKPVwSNGUQj9U9ZpXLKWEeaZUocvmuITdYYBk=; b=hQNfSYECiFAL/nvqfP54VjGLwlXB3EsglTrF1hEr1O3fsG4/+S2p3ch3 NUAsGErjapr/MNbM46MVo9Loh1RCGNpbktX4L7J6Uf5EmPLwJT5QAtDeK F2V8aqBj2+NfuQ5NvVeUNqoIBMB5EW0cCpkZwimtluoUrFSMNqiE+pFRR X8doNpyLZxQ0y0k9mmRwhcxZNWW3kof1HScYJ7wMouTkWK/pEJBg9MHvj afUl260RaC3Ib0TchgrfUvJUVYJ7H+pfT+hTsaBR/ttMjBPjyQrF5/C3q lkHgALg4ytZi6DH9lO7FwRnPTi0pQZDApvflHLbJ0G//+OOhwHGSZ+VBD A==; X-IronPort-AV: E=McAfee;i="6400,9594,10373"; a="266096004" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="266096004" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:29:08 -0700 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="649317532" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:29:06 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nzK5n-000XyN-Rz; Thu, 09 Jun 2022 18:29:03 +0300 Date: Thu, 9 Jun 2022 18:29:03 +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 06/16] ACPI: container: Use acpi_dev_for_each_child() Message-ID: References: <1843211.tdWV9SEqCh@kreacher> <3131424.5fSG56mABF@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3131424.5fSG56mABF@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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 03:58:24PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Instead of walking the list of children of an ACPI device directly, > use acpi_dev_for_each_child() to carry out an action for all of > the given ACPI device's children. ... > + return acpi_dev_for_each_child(ACPI_COMPANION(&cdev->dev), > + check_offline, NULL); I would find this on one line better and not missing important details after 80th character. -- With Best Regards, Andy Shevchenko