Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5914193rdb; Thu, 14 Dec 2023 03:28:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwUEU2oQ6BrD+x9mfViZoCVFgffXlMANEEqBt/d0b9FH70mn1bLUf+Skl/aR1wvZg/cLWF X-Received: by 2002:a17:902:da82:b0:1d0:5218:a7e9 with SMTP id j2-20020a170902da8200b001d05218a7e9mr10412605plx.53.1702553300289; Thu, 14 Dec 2023 03:28:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702553300; cv=none; d=google.com; s=arc-20160816; b=u7qehOpYfPnwy8kMU7F21vqjZQJF5M7ziNYKgLRcVR04aXSVX9SuHNEc9wVMSD6tsB PmCKxv9kmpMOh/NpbOtkLJQ9vlGS3EVhNVnm3YY+2QX4wOhAdkxEprDq8ns/vNmcNO3I 1EVIBEW/GzWOKjje6/PihH9/GtdfB/uXtjHtJHaLMCX2Mf1/wwV8h037KqL/l4zAjS4b 7RF4AMQV7QOyVjwChQK3luTYPbCn5UqFEpApw4tug3tuYZKo47+wsS4d4uMq944TQuJ1 H3WRIG2mKI4KOvkbh/w9sVCj9FXTtEx0/j5SmZd++e2I/ofFyyfWZWEgrOG5ABG+rU+s IeVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bZEQm9CamvSkehHITvDfJb+IQaSTnBF5Z6LBpExiSUA=; fh=4fT34MsiQuEGnSInfhnAX3ON8+uhOzEMXhXe9ykf+RM=; b=DkPd1bhHmbQjHKi/zIF/H+eKAPdw0MVMGni2Qxs+gvT2HEnVWXSt04FYNlb8HxUizm /8sgBRRiZq7eAOHsgiZzNWRfHzjJCc9HCeXrRk5sM64yNwvdfuZx0tniVtYJkBqDBlbn KD1sEs7DSUw1Hab3cpJZBvdrzPZaF/vyIRK32CwKWKB6WuU7p2Q9OQ2zu4ZqCZ/uIBbp rXTLUftfbzREWNdjMTV8qZOH6gBLpAiWilRGJKiZ5HGx6uOT5JBttuBOC/2KTtvS74AT 3UaUWBHqOD0exNGPVSCIkjmhwotP7u0dZwKbY7tmyIbmbMhd6Sq3nfWXKZeuJfGKcLGo PU0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ZaY/nxrd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e13-20020a170902d38d00b001d0050e246csi10779146pld.3.2023.12.14.03.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:28:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ZaY/nxrd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EBAF78145971; Thu, 14 Dec 2023 03:28:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443857AbjLNL2F (ORCPT + 99 others); Thu, 14 Dec 2023 06:28:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443635AbjLNL2E (ORCPT ); Thu, 14 Dec 2023 06:28:04 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F38F6A7; Thu, 14 Dec 2023 03:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702553290; x=1734089290; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8P2DmvTYt9Ql0vuLL0KEMLs+5zqY+u1T7WEG1CiG2Fw=; b=ZaY/nxrdGcoMEtGab9/5j3LMKjwhv7yfovj/3jrvpBlZOneeM0CO/wDg nrzIX984hPYFM9O7ZB+7i5dGmsAU+o1SJkECO79JUd3NNX5nB1t0Y7UFy RsKQNDUqCzpUe37voKduVgyfO4IH+yKaAuDZ9TczmyI6DTiSpW9RiTfdf rh1P9q/LunyXxC+ErpU/Ugg955Cgd4h1OYUH2MayWm9bEP/4uIumWtLdK bd6ZWq0J+ZqQyEFCuq/KkRSKEaaVQ27CYKsE96nxIlx5Geknf91r9dKai piHy/YRAv4lTSfOMq8AoLyICsfF1+hUuIFfucZTGeLpqHUnTGPcwupBUZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="385520104" X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="385520104" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 03:28:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="918025281" X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="918025281" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 14 Dec 2023 03:28:08 -0800 Received: by black.fi.intel.com (Postfix, from userid 1001) id A3C8644A; Thu, 14 Dec 2023 13:28:07 +0200 (EET) Date: Thu, 14 Dec 2023 13:28:07 +0200 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Hans de Goede , Andy Shevchenko Subject: Re: [PATCH v1] ACPI: utils: Introduce helper for _DEP list lookup Message-ID: <20231214112807.GU1074920@black.fi.intel.com> References: <12358058.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <12358058.O9o76ZdvQC@kreacher> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:28:18 -0800 (PST) On Thu, Dec 14, 2023 at 12:07:55PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The ACPI LPSS driver and the Surface platform driver code use almost the > same code pattern for checking if one ACPI device is present in the list > returned by _DEP for another ACPI device. > > To reduce the resulting code duplication, introduce a helper for that > called acpi_device_dep() and invoke it from both places. > > No intentional functional impact. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Mika Westerberg