Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp234810lqg; Fri, 1 Mar 2024 03:50:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWo9VKFFNkZTp7uCdTLXtN++Qik0j/CGIHfRHwV8oi6jBumDT/Ub7QBRtqWS+UWG+nbaWBxYbnAv2ARm0zdBe7BMkx6+B1KTaF0xDzE+Q== X-Google-Smtp-Source: AGHT+IFH9kBA3TScDtDZftQ2hCBlr56vT+W1fviWLmkPcB4INCYP1wP3INnNBLsPegfNOcHMdVzW X-Received: by 2002:a17:903:190:b0:1db:b8dc:a016 with SMTP id z16-20020a170903019000b001dbb8dca016mr2054679plg.7.1709293840231; Fri, 01 Mar 2024 03:50:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709293840; cv=pass; d=google.com; s=arc-20160816; b=tpVResc2thcBb+PaknugmhRHWABjWF78M3C/zAndz0fubhcnq3xm3TbbBqnPyKkyk+ m389hxyVFEE05TF9XsSnjRKorzX/Qz3Cj+BTR0piJobVoZvzwCJ+r6WBUUXJHnLO3EWF a3cw9vHvxkCzhGdLtb9RL7RDC/4vm4ThrgkRh6pJO1u54LjNRPxn8jLRItpiuWTBc2Da Ld8rDGyKLtMivpg/U8qjSRmvemo3UTrenQmETbH+gV7gCy5KVlN4IET4wWWQhJVTmQhA ZXRCeKH0Jy9MKiB0Ip26Mk/Ce4U9ZSIIc0IttZTM3zFPsOnWNZ8rO2vOeyYALCEjpCGx Xeig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oCkzOZZrKkuIyQTp1jeH7Y4SL3t5lII+bAmOXVEHPTU=; fh=Wq29rr4okggd40OcTlq1WVztrfBP9aKwgAr27Jp2JwM=; b=EqlgqJgDE0Wre23GlN+Yd/RIZdrJi2kI9rmfkdgSj4dq0Va/nR2/Hned1PE7hCuI2e 2G9OWGXJTBHHl11/AS2VAOIEr3HWgK4kd5R52ZK+YZNMG35owaAmPfWOzGMaF7cF7g5J AmilQIqaD9+ps/7c5MKC6+Hj7KF7rzqyI++jvhcmo1E9Fq0vJpQkI/YP1GbA5Kdf/5Kl EUY0igp/fNeG8EsJZ5BpmhbNhQdpjaqwZwzcIsZv+RtzNe90xDihIImHkuh1L7lTvaZm 9vsZbMy0yvWVhPTse4Syw7yXOLeWCvYYDWdJzbE4R4l6TVm0AfwFHeuhcjrVhkxc2e5/ VGEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DgV63WxT; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f11-20020a170902ce8b00b001dc7f98d9aesi3535942plg.556.2024.03.01.03.50.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:50:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DgV63WxT; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 89FE1B246C3 for ; Fri, 1 Mar 2024 06:44:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FE7667E8D; Fri, 1 Mar 2024 06:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DgV63WxT" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A246E692ED; Fri, 1 Mar 2024 06:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709275444; cv=none; b=J5DxV5Hbo/UrGn4reqqoCmwjrHbwiCbLKdoIx1GZ8EK92OiIq3b07W8xPyEvW8qvu6QgZvCBsAAHVyCBg7xPfYlgWfgGGQoAeUAKGbGCBnR0l1tpYzrdku3dtsyRCrApveqAKvG0Cvs0HNLM5Na6ZxGmIB83FM8akZTqDlFhTHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709275444; c=relaxed/simple; bh=nj6R/NWcs7xCKL/xpKr5SF3gUQ36p7ueOQilXXZj4CM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=g/0JH7xRJrQC/59sdstHp4ghVlwmaqLniaf05ZcQKqH8jrfWS8qcpa6bQN08Z7nGDy9YAEWyBrRCUZOFSqzu+Mqgohj3wcU2Z//U/r9Y9WHOes9R3A+awZkt0/nvI5Smw3ocq59qqF1J9Fo47GF5IlzixHGSRRbjhatFj+RslwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DgV63WxT; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709275443; x=1740811443; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nj6R/NWcs7xCKL/xpKr5SF3gUQ36p7ueOQilXXZj4CM=; b=DgV63WxTQTr2OlFurlPYlDlrHTktAWB1Q7/sbLT1VaqFlicZpQaFLKXv kZzloVATMSDM8M3Upo0fzHCjub9Sd9XSZHrgVJe9Cvr0ViQonpJu7Iih/ 6RZGO7RcikkeMaUyXC59PEQMN+F8wvLOr+qgzUeJHWMcwDW3HDEhIBqLo Tol+wnEHB/ViGc8nPxujXIiypqvHNNw5CCfen0iax6tASdbIsQXjnZr8o YaqQo7dBfjVojpfoUN7G3mpzZ5sE4m2DRNzpezzSQHiaC/9uC5QuU8eEk 3Xhge8zAp+EZN4+6OjMN88patxc0ZkhktfhBq1tIchksdkPs8StS4sP23 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="14436715" X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="14436715" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 22:44:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="937037068" X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="937037068" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 29 Feb 2024 22:43:59 -0800 Received: by black.fi.intel.com (Postfix, from userid 1001) id B659E3BC; Fri, 1 Mar 2024 08:43:58 +0200 (EET) Date: Fri, 1 Mar 2024 08:43:58 +0200 From: Mika Westerberg To: Andy Shevchenko Cc: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski , Chris Packham Subject: Re: [PATCH v2 0/2] gpiolib: Align prototypes of *gpio_count() APIs Message-ID: <20240301064358.GL8454@black.fi.intel.com> References: <20240229145303.3801332-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240229145303.3801332-1-andriy.shevchenko@linux.intel.com> On Thu, Feb 29, 2024 at 04:51:37PM +0200, Andy Shevchenko wrote: > Two out of three GPIO count APIs take device pointer. OF case clearly > does not need it as it immediately switches to device node inside, and > ACPI abstracts that to struct acpi_device pointer. Unify all these by > making them to take struct fwnode_handle pointer. This, in particular, > will allow to create fwnode_gpio_count() API if needed. The need of that > was discussed here [1]. > > Note, no functional changes intended. > > Link: https://lore.kernel.org/r/2ad735ed-963c-4e75-b83e-687ea2c0aef5@alliedtelesis.co.nz [1] > > In v2: > - fixed typo (Chris) > - added tag (Linus) > > Andy Shevchenko (2): > gpiolib-of: Make of_gpio_get_count() take firmware node as a parameter > gpiolib-acpi: Make acpi_gpio_count() take firmware node as a parameter For both, Reviewed-by: Mika Westerberg