From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51C63C43334 for ; Thu, 9 Jun 2022 15:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242903AbiFIPkX (ORCPT ); Thu, 9 Jun 2022 11:40:23 -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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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