Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp766395rdg; Wed, 11 Oct 2023 05:09:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHf+gJix87Pv3VuAlFCZaBxoKgeMm9P8XtEGtmgE7InS+BAertOit/w07ZcFqAfqiN/q1uI X-Received: by 2002:a17:902:eb46:b0:1c9:c5a6:1d00 with SMTP id i6-20020a170902eb4600b001c9c5a61d00mr3175710pli.1.1697026173198; Wed, 11 Oct 2023 05:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026173; cv=none; d=google.com; s=arc-20160816; b=zdLt/jR48kj3CysT7Vw6TX0/N7w+0Jxey+JcynN5AgRWNst/rJigCXLlRi1Mfo3NAo F63nfNZRm91oEtOOKVrbAoBypnDncnZ1pZjt2pTj+2DhvCFpeE6OB5WtrusmQdwRv1B6 VHgPFi6G3T9rfVRPzfoErAeoHzck887XMA3+sbk8l4U837d/Dp5Zj2ZrG00gfoXO1x7/ oOumoKuOlQCmWNDBBfubpdTMUb1FsnjfgHwpx+teZ4151V8OtSQoiNCkeBLddO21h3Xr HrE3h/GS9/snWkBTBiKBzBEOxvDxXE3ph28vEvL8iCYLFVr8rrMSMFbvEgoXshUkYau+ 8dTA== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p17-20020a170902e35100b001c9c8c4cfb6si2029347plc.214.2023.10.11.05.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; 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:7 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 snail.vger.email (Postfix) with ESMTP id D670C8184E1E; Wed, 11 Oct 2023 05:09:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346731AbjJKMJZ (ORCPT + 99 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 ); 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 ; Wed, 11 Oct 2023 05:09:12 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50325ce89e9so8954634e87.0 for ; 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 To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski 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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:09:32 -0700 (PDT) From: Bartosz Golaszewski 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 --- drivers/gpio/gpiolib-cdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.2