Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp769068rdg; Wed, 11 Oct 2023 05:13:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmdvLIfq66iGzS79SZdh68t64YB+y0eI8+bzAC7FtWqbQQwpGV6hOD/t/fcSZYdTgXai0o X-Received: by 2002:a05:6871:14c:b0:1d5:9451:d4da with SMTP id z12-20020a056871014c00b001d59451d4damr24096144oab.17.1697026410335; Wed, 11 Oct 2023 05:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026410; cv=none; d=google.com; s=arc-20160816; b=GISssRX9HzuWev86nCfwqbamY2CGp7kbyITvR6CQMB6DUE+4w9SbSCCDw6tnaNqA57 NGPA6/yl/XR2xQ/M7TOKdbRFNMf3mlHlcsyK+KpWorWg3V3P6DiJBKDJvYcWspG846Wy uRwRacG0uaLtHWUDjnvXkwsCC6jMziICfSuuSagWFFsCJ7XVocTM0NNK+JZ8R5olytZ3 BRj5qiRZKH8ot7DL5Rp/AhkiUkaXE0Z75tKxIpYgQdalqBt3mqnubThXB1DFv2zGi8ip G2dDrMcSUvOAU6pmifqfqybD6hzOL4djA+90ksNrmcgfvGAp4sIIDS7LHUjg5pSF8YBf aAPg== 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=Ym+lGOiXrLf/f0DbNS5vfxnOIvt8z3Dra3kRtB7r3BY=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=b7bjq6m0bl5ScIPkdR9QMxW2tCBb0sz3CZAMPtu+b/TwkEEBpdMPtGFab341x6t9Jb dd3djWjROSjgbq89Y21dHUzBYC6HR89lDImkBjYMBdYN+oWDdy55oYBvdsuUinPBG1GI 4Hz6Nze0nq+KAEIFWtbfjZuHzHZkMZAW/Vydae7qwmLSOXfICUPlsMVeq5j/4g11+QU6 GLxtrJjUnWn4DxSX5g4eU5/fSUMTzCpuMoHzjBhQZG1fTU3cPzgUz5EzCk+whKExGzCO fzfgpGulSI9XgKDa1pgwU32VsKCubMe6puDYBAChFBQ3HCRyh5UD/eIqQAF0okZKitsV y8QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=mW72BsQj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h184-20020a6383c1000000b00573f786103dsi1139577pge.754.2023.10.11.05.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:13:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=mW72BsQj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id A4F45801CE6F; Wed, 11 Oct 2023 05:13:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346817AbjJKMMc (ORCPT + 99 others); Wed, 11 Oct 2023 08:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234946AbjJKMMS (ORCPT ); Wed, 11 Oct 2023 08:12:18 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44FF51702 for ; Wed, 11 Oct 2023 05:10:01 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4060b623e64so5627705e9.0 for ; Wed, 11 Oct 2023 05:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026180; x=1697630980; 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=Ym+lGOiXrLf/f0DbNS5vfxnOIvt8z3Dra3kRtB7r3BY=; b=mW72BsQjzS2uELChPLdKJcGvRE0RNG+FHz5J5TAxCnVeBXHXcf4cKdFjc+/0sZHmzs kivozQ5g+wMl2o+BfB+2lzaJFEdu1V22L9IjkrSLcmkhiIlCEjy2d2AO1H6nKcfmGhLM PWNk0i4CpajIv2JLblmAuiLXnSRDG/KcLiASBg9YGs767I4illxyjNko7BcE+d6Nxezt 03GAhV3YUOehFrQ/RxBDC05efX+vs9CzRC2OhLZOykxtn+R10dPXSYrvo1CAVJV8XZl6 qYjjz4EaNW5ehjDlKC/FxSeDyMDxlOv0MazN/yNFf/DS3adrAQM10xmeluqr8M/7ZebA 4VPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026180; x=1697630980; 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=Ym+lGOiXrLf/f0DbNS5vfxnOIvt8z3Dra3kRtB7r3BY=; b=B4ZUiYFXc3y5sVhAeRjgGRyV9mDzVZds9GkV21w4MnJ+mF/XYYC3KAT6AgpZwTM7u2 FI/X8tsLucbSCVGE0pUrh2FzP0uPORjHnrac0xp0or1rEzzSUqxf7t+aeQeWAUtOOuca U1p556GC+wZq59xygAWJ09iLx8KESCwWz08jLl4Tb2AoUKeDu0+oCgVyYxg4CqED3PfF tJO9Qjc5r7KrBAiXaZpALW0wmdWpTSvqujMXUDl23QYn5d2ey3ZG/VyEKk8p5TXZWVEA nrIyUh5J5gtfc5qPaFTZt52U7KkNLBQy7QNY1qjO9J3s+4J/CTjHSsWqeOeBdgVIACEx xA7w== X-Gm-Message-State: AOJu0YxXSCV2ugRypU96lOlDXCdRBvzLm48yP1FJXFlqjTZ4VTUkLm1+ Lbq16HuA3UdTvejCyHWDhPos1w== X-Received: by 2002:a05:600c:1e2a:b0:402:ebe1:7960 with SMTP id ay42-20020a05600c1e2a00b00402ebe17960mr15507087wmb.2.1697026180119; Wed, 11 Oct 2023 05:09:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:39 -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 36/62] treewide: rename pinctrl_gpio_can_use_line_new() Date: Wed, 11 Oct 2023 14:08:04 +0200 Message-Id: <20231011120830.49324-37-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 howler.vger.email 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 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:13:16 -0700 (PDT) X-Spam-Level: ** From: Bartosz Golaszewski Now that pinctrl_gpio_can_use_line() is no longer used, let's drop the '_new' suffix from its improved variant. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpiolib-cdev.c | 2 +- drivers/pinctrl/core.c | 4 ++-- include/linux/pinctrl/consumer.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 54ee075410db..02ffda6c1e51 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -2287,7 +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_new(gc, info->offset); + ok_for_pinctrl = pinctrl_gpio_can_use_line(gc, info->offset); spin_lock_irqsave(&gpio_lock, flags); diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 99514119c2bd..2c8d0ef798f5 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -755,7 +755,7 @@ int pinctrl_get_group_selector(struct pinctrl_dev *pctldev, return -EINVAL; } -bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) +bool pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset) { struct pinctrl_dev *pctldev; struct pinctrl_gpio_range *range; @@ -781,7 +781,7 @@ bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) return result; } -EXPORT_SYMBOL_GPL(pinctrl_gpio_can_use_line_new); +EXPORT_SYMBOL_GPL(pinctrl_gpio_can_use_line); /** * pinctrl_gpio_request_new() - request a single pin to be used as GPIO diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index bcd09f584525..220f69f342e1 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h @@ -26,7 +26,7 @@ struct pinctrl_state; #ifdef CONFIG_PINCTRL /* External interface to pin control */ -bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset); +bool pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_request_new(struct gpio_chip *gc, unsigned int offset); void pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, @@ -73,7 +73,7 @@ static inline bool pinctrl_gpio_can_use_line(unsigned gpio) } static inline bool -pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) +pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset) { return true; } -- 2.39.2