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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DED6FC433EF for ; Thu, 7 Oct 2021 17:20:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE39161261 for ; Thu, 7 Oct 2021 17:20:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242579AbhJGRWo (ORCPT ); Thu, 7 Oct 2021 13:22:44 -0400 Received: from mga14.intel.com ([192.55.52.115]:8047 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233662AbhJGRWk (ORCPT ); Thu, 7 Oct 2021 13:22:40 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10130"; a="226606451" X-IronPort-AV: E=Sophos;i="5.85,355,1624345200"; d="scan'208";a="226606451" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 10:02:00 -0700 X-IronPort-AV: E=Sophos;i="5.85,355,1624345200"; d="scan'208";a="458863397" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 10:01:57 -0700 Received: from andy by smile with local (Exim 4.95) (envelope-from ) id 1mYWmH-009bZU-OW; Thu, 07 Oct 2021 20:01:53 +0300 Date: Thu, 7 Oct 2021 20:01:53 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Greg Kroah-Hartman , Saravana Kannan , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , ACPI Devel Maling List , linux-i2c , Mika Westerberg , Linus Walleij , Bartosz Golaszewski , Wolfram Sang Subject: Re: [PATCH v2 3/3] gpiolib: acpi: Replace custom code with device_match_acpi_handle() Message-ID: References: <20211006173125.84423-1-andriy.shevchenko@linux.intel.com> <20211006173125.84423-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Thu, Oct 07, 2021 at 06:50:46PM +0200, Rafael J. Wysocki wrote: > On Wed, Oct 6, 2021 at 7:31 PM Andy Shevchenko > wrote: ... > > + return gc->parent ? device_match_acpi_handle(gc->parent, data) : false; > > return gc->parent && device_match_acpi_handle(gc->parent, data); > > would work too if I'm not mistaken. Seems so. Thanks for review, I will update for v3. Any other comments to the series? -- With Best Regards, Andy Shevchenko