Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp545863iol; Thu, 9 Jun 2022 08:49:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJystqi/cp4hTswwBJPhmE/oMsq+0Zdv9xapWi8YK6nRsqTRbpfl6rCt3FjTck8/L3z3k6Ai X-Received: by 2002:a62:a210:0:b0:519:342e:c599 with SMTP id m16-20020a62a210000000b00519342ec599mr40823125pff.19.1654789769348; Thu, 09 Jun 2022 08:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654789769; cv=none; d=google.com; s=arc-20160816; b=sOSwKS7mef+B2IQTPvS0XP/2x8SQURdZDqaeBDBKCYheGtzi8PebbofXkWDJAsJSw7 3OmTpyv3PtUB2JD4cXeBoFM9+fiROmbpZKvbLGfKLxPEmfXMejpz3W5eEsZP/Y3LBkp+ BVuxnAANQJK3aD2ln+SAUf5mrnyWEBCSdAIdyVJQ6XA4e9xgmz/yA4R5knwcKPJfcFkT Z9cBPtrdxJfMzuP6i4/0PPXCvvYw2rOHO0xwiKXJAlVbh9VNvn46bpnd9yxCxSD8CqfA o+z5Em3VC1Y2FPogO/m5Zesi1l2NjBXUROlT5ATOPCva8bjhS5RRfLJcIu71twVfd/vT mD8Q== 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=l4GvUGn+WrZeeJ1sWwrw9MiDSZobP6TbI9DSR5i0dFQ=; b=0BcoJjGGUuINazwDwykvxB8vhvd8ObYmzzccVvoXduTGIlQQ3eoMM90Hoit/O2pmow YzhMHoVkEA41rA3uKUjyqfeHxSuL52LYpDjQwDPa8m70NAnrNzOsx/Tale92a74oGAQw uH9skCnAWahB78mo4OAQSJEp/agtjBMRFugPcTTbqebqX+4CYg0h8jL6VYNWKeSWJHJu +7VQWaXH/UeeZ/Y7Z6rbWko9C9y7I7NebzEE9hPkxEYvhN/ruvh4ezbNKZdQQVEJPvak TIkeEYvNU7bs6pLM4+6iMkG+ynPWm3WJNBDm55+pta2rojlqrwYj2K+2gCt5FWPZWRgu JH5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I5VHb1xQ; 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 n14-20020a170902f60e00b0016763dfce14si20539718plg.35.2022.06.09.08.49.14; Thu, 09 Jun 2022 08:49:29 -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=I5VHb1xQ; 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 S1344357AbiFIPkY (ORCPT + 99 others); Thu, 9 Jun 2022 11:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242772AbiFIPkW (ORCPT ); Thu, 9 Jun 2022 11:40:22 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2128264D8; Thu, 9 Jun 2022 08:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654789221; x=1686325221; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=C0meZMeXRVt+T0/yrWzbylwSvLRo1LFficXb2EiYhUQ=; b=I5VHb1xQ1RCqZkh1YF35pX8eOFpslT4EBgXLbX+Z0RQR+aEAz4I8l9Rj UD20W9wwossOOqgkYLWERVuF2ExDmlqevm5l4PN+oKQEg1L8lDvPW3zpo s88U6eSdT8I8wei4AzAvcZTTuRFmOJ7a3DVR7+b+Emc3G4QQnJbpKzW2x usSDy3gR20ckwestrfIafr354o69rR+NdGl628+t0E8maO+3wiQhSDunW eh+Gho9jrPfsXcFaS7y+7f0N+QciTjAkAfkhxdMzVWvs1y9FUv3mDoMdF qVzf/ne3RE+xuYTWCbdkYbtVioDeBDFjiHDkrJoCcQ6HweIDFsGUqj+P/ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10373"; a="302692566" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="302692566" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:40:20 -0700 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="724490262" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:40:17 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nzKGc-000Xz4-Dz; Thu, 09 Jun 2022 18:40:14 +0300 Date: Thu, 9 Jun 2022 18:40:14 +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 09/16] ACPI: video: Use acpi_dev_for_each_child() Message-ID: References: <1843211.tdWV9SEqCh@kreacher> <22695031.6Emhk5qWAg@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22695031.6Emhk5qWAg@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 04:03:37PM +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(device, acpi_video_bus_get_one_device, > + video); Perhaps one line? -- With Best Regards, Andy Shevchenko