Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp611969iol; Thu, 9 Jun 2022 10:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoeakCACNe7oo9oTjzwQ5ApMUcaBMRsV+uam4j7ssgwxp1VcHdr/c6xWzxtVm/3/WaMzsU X-Received: by 2002:a17:90a:728c:b0:1e2:e386:4448 with SMTP id e12-20020a17090a728c00b001e2e3864448mr4346678pjg.167.1654794288119; Thu, 09 Jun 2022 10:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654794288; cv=none; d=google.com; s=arc-20160816; b=UMNO5Cit1Xvu2oNV8QAHwTRrenSJz4KgLDkABSMfpG8X+gx++NxrRqof2XGBhG8XRO EhumHSHzfcceDUG80fjM61z6nOBmHbfOHqPoLO1MGNQQQSfBS9oit22VU6vXtB+BoTLU ak6fOlvoySmD3OUt1+IBT7QQgxalxmrLfvJ7TRcVOL7ItApxG5P0aU46VXT8P7jsborW Zt5aOHiwEIobdvnsjCbt7vSF4fpetAhVLTzbw4KAAsuOVCyrFYtKi3rFoaUAObNYzNtG 1QzcKkqgq8YxeNJh8xfjFQ7I0+6UuabC2WTCGPDJOy5A8TiL+uR63lt4WUSMy/3ZwBzR U1/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=snkbXXdh1Awqy9vBJuh+GlPV3Fw82tGOyyClJidX3GY=; b=PM01Qqvd1U4agiBom96HpDNgatvs+HGjAEnHQhBWrDFSia/l/Yb+ZU656bg6qVAI22 PKP9XywpsHkzb3rdvniBXp2NaRXSnC4xrLAh4zEMDo+UbSXpXluJN7JosBURLFODzg+J lXAv1OCGZDnj3Lgx97kZRS8I1kzkkO6DdLg37G7iGL1as3d6HwPlC8LQTGnrzyEyrtqw 1cueo2eSABpLzneochTdgd7TkGn07N6SIrYHiPeIDtk9fF/zX4unxftwTnbD+EOPpvik RC0ys7r6xWAczflo7fbvom+MrtQVhtQ1Eu5LD5y67S3Gz0Klag9gy/etZZOk4b2o9dbV o7cw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj12-20020a17090b3e8c00b001ca8baaa48fsi12466070pjb.120.2022.06.09.10.04.25; Thu, 09 Jun 2022 10:04:48 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344679AbiFIP6v (ORCPT + 99 others); Thu, 9 Jun 2022 11:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236702AbiFIP6s (ORCPT ); Thu, 9 Jun 2022 11:58:48 -0400 Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 576401D687D; Thu, 9 Jun 2022 08:58:47 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id x187so14946698ybe.2; Thu, 09 Jun 2022 08:58:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=snkbXXdh1Awqy9vBJuh+GlPV3Fw82tGOyyClJidX3GY=; b=t6SxJxoaSi7zwAe1E1vHX54lDvXJ72Bimm+agokSLSgnO4fSkZbw26NLUGb65RSoDa 6R8RqXBsrsTyU1NkEy5MP2MplZQdrJIznLONBxssrYAxnZhfXR4cnA7e1JBdojXPZDOS ldMcfsgXHE61h3z3FAbFzXInjI74PNk+baRqTMzcccBAEj01+1elil7OOLkCaMYKqkll 9ioyJ3Z2eWr/jyTpyEleHr941JBTEyCyQc9QnIeSnuBL/7WsVRniZBT4EC/FOICKweU1 5UHEri9D5z57PsU8hHk85W1VLGR/X8+agijw6sYTIF9Dk8M95Sa3w/8l3ZzdKxyO5ojL hlAw== X-Gm-Message-State: AOAM533P3Dy9z90M/TIH7PetbRjbclW4YNQRUliHvM4XCObTXMJTg9bt s6nlJrT+NobK5sUygOebqIJ8jZ4K0pLEAP7P9P8= X-Received: by 2002:a5b:e92:0:b0:664:2bbb:98a9 with SMTP id z18-20020a5b0e92000000b006642bbb98a9mr4822186ybr.482.1654790326622; Thu, 09 Jun 2022 08:58:46 -0700 (PDT) MIME-Version: 1.0 References: <1843211.tdWV9SEqCh@kreacher> <3131424.5fSG56mABF@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 9 Jun 2022 17:58:35 +0200 Message-ID: Subject: Re: [PATCH v1 06/16] ACPI: container: Use acpi_dev_for_each_child() To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Mika Westerberg , Hans de Goede , Sakari Ailus Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 9, 2022 at 5:29 PM Andy Shevchenko wrote: > > 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. I see that you've made similar comments on a few other patches. I'll change all of them to be one line (longer that 80 chars), but OTOH there are people who still don't like that.