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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F12CAEB8FD2 for ; Wed, 6 Sep 2023 14:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=c9veimXwS8syDfwpxI+DL+I5mRAxnQb8DOExzEp76Mg=; b=EFOEP2rHwlDa6S PPHJvqC2mxXQCeVpoMJSYkZ8m7TSZhelmwRGKixNTQUAx70nobfwAY3aGBboIYheCXo63262Tba0P vTtRXc4yHlSG+BLPirK1SJk7qpfR/6D23e1pA2OxYTHGdNCiH+uQYPUZaS41REtGH03mKF2t3FFmV hiLus2HoZvz7i+i0c6ZYOtMrQ9UWYf9gMjlbD1ceAy3jhgf0ibynCPSn9bNEhoRJf5myowZpZsRXx IzWZ7tXcyBNtOkYlYVvsNJ/IA1t/gaNt2hptu7wnML9m60t2htD5XslTAA2wFJG0i/jL8JwdhK+nM z0GQy4U5gcPnhJHbCKkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdtRa-00AF3z-39; Wed, 06 Sep 2023 14:23:46 +0000 Received: from mgamail.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdtRY-00AF2i-2Z for linux-arm-kernel@lists.infradead.org; Wed, 06 Sep 2023 14:23:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694010224; x=1725546224; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NkDVpIGP6hSnJ3pk9APCaVMBJZKKIjfhnS1bhhI9K34=; b=BBgkOVQZ90ygWtlwhUVonekZIXK8IEUdWAAre87ZKvDOwkExTAAyDgHz sX642SPMEB9Weheih2f5WvYQgsKZACwciTztolZx1I6QIQpT93xr76lwt fc64M8iA7utJOAE3RI+wXpOdhdaOUV+SIFmY37yCvcAq4r18H9++o6++9 vShQQu5MkeyzuMNydn/ShQqhukld5VA23I1MColnFXkP1fSuEEz6WQ1vY 10OcTF6mUF5h0pssJdx4PotOG+eg2KIyegZss00jra/VhgyCnR8EzRB0P hSnWhiPU/UdkAEE4boYkQRoWSPZikE2q/qzIdtXnmUly4uFMMTsjKVu6a w==; X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="408082885" X-IronPort-AV: E=Sophos;i="6.02,232,1688454000"; d="scan'208";a="408082885" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 07:23:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="915296693" X-IronPort-AV: E=Sophos;i="6.02,232,1688454000"; d="scan'208";a="915296693" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 07:23:33 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qdtRK-006xiY-08; Wed, 06 Sep 2023 17:23:30 +0300 Date: Wed, 6 Sep 2023 17:23:29 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Russell King , Mika Westerberg , Linus Walleij , Dipen Patel , Thierry Reding , Jonathan Hunter , Hans de Goede , Mark Gross , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, timestamp@lists.linux.dev, linux-tegra@vger.kernel.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 10/21] gpiolib: replace find_chip_by_name() with gpio_device_find_by_label() Message-ID: References: <20230905185309.131295-1-brgl@bgdev.pl> <20230905185309.131295-11-brgl@bgdev.pl> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230905185309.131295-11-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230906_072344_898299_78F61626 X-CRM114-Status: GOOD ( 10.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 05, 2023 at 08:52:58PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Remove all remaining uses of find_chip_by_name() (and subsequently: > gpiochip_find()) from gpiolib.c and use the new > gpio_device_find_by_label() instead. ... > - desc = gpiochip_get_desc(gc, p->chip_hwnum); > + desc = gpiochip_get_desc(gdev->chip, p->chip_hwnum); Why not gpio_device_get_desc()? -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel