Message ID | 20231011120830.49324-5-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp489894vqb; Wed, 11 Oct 2023 05:09:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEO5gRZ1+0zzfEKVd3HfBdIhvzS9lXcAIgW29R5ADK86Hdg5Bs5yap6nAqCTQgYezoV9hgz X-Received: by 2002:a05:6358:e91c:b0:143:6813:bffa with SMTP id gk28-20020a056358e91c00b001436813bffamr16416162rwb.0.1697026185918; Wed, 11 Oct 2023 05:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026185; cv=none; d=google.com; s=arc-20160816; b=KWmZCUwtfN+TpSk3HoGN/db2upND4/UWT7OkHRq7IqaEf5hbIGE/tcrVhxBuketrqh 88ldcMKESNLKAWX+0DIdPiLq2seEtQJSrl3NfGVwTMQ55cvm8b+POvtCkg/bhAdrRXzQ /zX1NF9d/uWPRJjpZDWflGVgnPzStOT0h6mOKwxKPRuhAscwdbW0IYJ7t4IbnxzdZ90k RNpiAEv9vSUMbEowupIadfB8BHNvI+TggYQH+LaUJVeWqkpIUBToxGwnJGbJK/lU3nw+ nBlR18uZzkOJ8Ei1CNQ8DgeFcp3Sky+bpxAcZCUhv+3cnZY6sb4vBXbCKyEQQxIvcgOt 2izA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YhFi4LGhC2Y5nFrUut/uRJGJvyUMlfTO1AC2VY89hk8=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=FERk1aZrVbuO9NoetByvZ1fjbwqoq+Pg+ybW8ATVmsbTXSUFlXljwztc2lJH9RQEj9 URCaSE2wStXF1pDWAbKnhN1faj+gitDR7+pHeoLK6J8NTVxSpolUaY9U8JIxBSktAK9g /Ci25a6xXKU8fXsGOGnYIUUNovv2dIVRzKKv0XYmvoioX0QjPPkKKSjMCEJ2Tnq9rOIF arDXBB1oiPIpO1GLUqoPS5ycAJxhu8NXVVwiM608drGSfJwleowsiDSLQVbju+xOKeZ3 RBRrpt4Pizx3dX9TamKQMmE29xmPKSTBnvOJonzU/gH6pzlQiPZGJ80LROjR3qoinmSe vyGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=PTwW8Mm6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cr7-20020a056a000f0700b0068fc2f7cef3si11229313pfb.358.2023.10.11.05.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=PTwW8Mm6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7C40B813540D; Wed, 11 Oct 2023 05:09:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346516AbjJKMJZ (ORCPT <rfc822;kartikey406@gmail.com> + 18 others); Wed, 11 Oct 2023 08:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346388AbjJKMJO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 11 Oct 2023 08:09:14 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68605B9 for <linux-kernel@vger.kernel.org>; Wed, 11 Oct 2023 05:09:12 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50325ce89e9so8954634e87.0 for <linux-kernel@vger.kernel.org>; Wed, 11 Oct 2023 05:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026150; x=1697630950; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YhFi4LGhC2Y5nFrUut/uRJGJvyUMlfTO1AC2VY89hk8=; b=PTwW8Mm60bUz0lSdpHfx/ETkUHRkk6phf/AoBK71eH8GEtZTPihox/Gihy4VS1Ktfz M+gCKn/FR1CAQ4vOdBlirgve8PazA0KsjeLbkbaJccxt/INtOCSxmbsXMCFl4Wrnuix+ DxqVsSn8cTJ0HdlqaO/XbP0Yl24F2fEqeqvkJRNp54EFThVohCPcBgNDOU0baOCR4pKQ WrPzCNnzd5Z67G9Z1TGj7R8v/pfGdVfdpTxtRlAB+8IXXJnapwHX5CEjVnevfFt/acpE /6CaLDkqvqS+Z0RVy/ZvU2o+mAlyRItMSamEJDeRFgSa7IfyKt15NRZ/FjI2H7hu1e/z Q6mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026150; x=1697630950; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YhFi4LGhC2Y5nFrUut/uRJGJvyUMlfTO1AC2VY89hk8=; b=cFEXY3hLg0z7fbJGhF7I0BNmzBhadu5YnwIeCGBgKK3kBP/+n0tHNhWeV8E4TS4X2y YuRgIcUmWXW8N2ojx6qZapv9Woy23VFBGj2xNhsU1HBKTbUpYV2wBoNuHM92OjYpR7KQ L1AHJeF/XkRmQwkiSojQsijRrlbFHWk3A4vPi2Rshwh1ojmiu4YGINxe9yYvIrRsVtfE FBX7GGPLZfulcJ1lF9vYAoNNlT76NcaIQEm60RQwYZsIW1tPM+eqLD20YI0hO43u6M1u WcrPsbzT1U5s7WGQ8HdWdyc2izS9uOCN7Ks5gRhH9sXVQOfdZ1k735XnQz1rpSGQl/NC 8aGw== X-Gm-Message-State: AOJu0Ywf8/utfZFgVoEla69NF/K59Sc+ZrN/iSMEjcwntI9mFB/KDH/3 BzxP1AwEz+7Z87TwW15/i6TzAQ== X-Received: by 2002:ac2:5e33:0:b0:502:9c4e:d46a with SMTP id o19-20020ac25e33000000b005029c4ed46amr12870722lfg.32.1697026150722; Wed, 11 Oct 2023 05:09:10 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e551:3946:26fc:f94]) by smtp.gmail.com with ESMTPSA id w21-20020a05600c015500b0040652e8ca13sm19012253wmm.43.2023.10.11.05.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:09 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Linus Walleij <linus.walleij@linaro.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v2 04/62] gpio: cdev: use pinctrl_gpio_can_use_line_new() Date: Wed, 11 Oct 2023 14:07:32 +0200 Message-Id: <20231011120830.49324-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:09:40 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779460929822710310 X-GMAIL-MSGID: 1779460929822710310 |
Series |
pinctrl: don't use GPIOLIB global numberspace in helpers
|
|
Commit Message
Bartosz Golaszewski
Oct. 11, 2023, 12:07 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Use the improved variant of pinctrl_gpio_can_use_line() which takes a pointer to the gpio_chip and a controller-relative offset. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- drivers/gpio/gpiolib-cdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Wed, Oct 11, 2023 at 02:07:32PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Use the improved variant of pinctrl_gpio_can_use_line() which takes a > pointer to the gpio_chip and a controller-relative offset. Whatever name will be Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 31fc71a612c2..54ee075410db 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -2287,8 +2287,7 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc, * FIXME: find a non-racy way to retrieve this information. Maybe a * lock common to both frameworks? */ - ok_for_pinctrl = - pinctrl_gpio_can_use_line(gc->base + info->offset); + ok_for_pinctrl = pinctrl_gpio_can_use_line_new(gc, info->offset); spin_lock_irqsave(&gpio_lock, flags);