Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3106817rdg; Tue, 17 Oct 2023 05:05:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERCZqdIbQR7JYiFratePKGb7Nkxz3MsfamMBjssXFkAtjbHHOUgR/ZRkF51y4NCV6hTGM4 X-Received: by 2002:a17:902:7609:b0:1c9:dff1:6ded with SMTP id k9-20020a170902760900b001c9dff16dedmr2113855pll.1.1697544303635; Tue, 17 Oct 2023 05:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544303; cv=none; d=google.com; s=arc-20160816; b=d9ykOvEH5BTbIGvvUg30a7YSpOCsz9PC+WimpfyMz4zriwmCpsWNcLzBT4VQJEq4iR I1lXIe5DGpKTpuQHzUUMT80SMyNowdAIsUWEiJYDFYv3rqo/QQbk4HQfpMFcBA/8E7q8 rRnJViJwTjCHRJ+aap/7jwPoZ251hrD0FKy8xY0MRSR6/leIHmivtc1WYPxdaJ1JRsTH 8oYBqmg98YAfmRT2sg7SlkotQyVEkFEiV7a+8iAa2K3Vr8v1H9dgDKPn8eviDK/q+HcE Qn3hkBtH0d5HeMHBBAeiRgS7zbm9MGQgesTHbChv24QIj9kNsTvAePm+rzmD8EMP5QBo 8QGQ== 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=fHHeG5JRIrppV58ReGuMBvMgk8ne+kNJoA1YKryvqFg=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=TWiF2QYZdKxvKb/IDyN1WYXOf5aaWnLG9KHw746YW6oJzV0D9GimjByXkc3JZP5VPu R7eS/BqJ3Rtyc+en3HlzycZ4+U54gL8dDWzCsHFreAfowJdNNKDwFOfgLHOic44Fmzvt LAIlRXprIE8P98iiWzV2SUCyYDCzutrIquig4vsPv+yfni3CRqmIAy1SBcTMMpfMypvu WucafrvaQA+x0nAw8Ro70W+Pzco8QJ/hGYhoxFvdotviicBvH87oNNC6b5VTgwdkiXfw lhgqgR9t8jEcEEQF7Bt5/vrx5RfKvxWQJY+k0zehZSrnJKO/il7YqmsJEn92GFpHELS1 X6Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="2SrRY3U/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v8-20020a170902b7c800b001bbd0450af8si1516815plz.187.2023.10.17.05.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="2SrRY3U/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 8C006801D4B7; Tue, 17 Oct 2023 05:04:59 -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 S234352AbjJQMEz (ORCPT + 99 others); Tue, 17 Oct 2023 08:04:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjJQMEx (ORCPT ); Tue, 17 Oct 2023 08:04:53 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24A3AF1 for ; Tue, 17 Oct 2023 05:04:51 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4060b623e64so35178815e9.0 for ; Tue, 17 Oct 2023 05:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544289; x=1698149089; 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=fHHeG5JRIrppV58ReGuMBvMgk8ne+kNJoA1YKryvqFg=; b=2SrRY3U/LUUddE6vr7B1pfMUV1gJInKkq75oPYO7mkkBhoVICz4Yw333RcGckM84R1 o+eoXH08eOe6+dbaOS7GzJohbLHRd6LPSJPkXTggDNFdSbxsemB4FBoWBTNVYom1qz3A Q4AKtbxaYdvv+6t1iTuYAWisZwVZunfDtQBycSqhnZS4OdEKVaxeDdgcn3Bqi3SryRQX TTCfQ7nBfxw59+0s7k234chu2H3zE+246U6bXoHzvtRBRCweKilzgyuWwgTscdHCA2nh P2ByccVoF3/FvtrU0VsJawcJmFN7JMqU4NemEDiX4DlBtSXYGw+UZZHJtUTv+0iiqTO5 yAUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544289; x=1698149089; 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=fHHeG5JRIrppV58ReGuMBvMgk8ne+kNJoA1YKryvqFg=; b=SQBxjLPlgbiC8qvpj4TbN79QWy/Gt/uvZCp4gmKF6aztgwT31qr/n6mBOK4jCaq9JR YrUPvS6WNL2SpaN1J9lU3q8XX0H3nuktKWciEDT7MxMsX+wvFsD46v2WpQbf3Aj8NAMS Rh2VHeQXl+IwB8WJB88RfXqu+dGrMWJiw0mLy/3/0cYcKVcHnKyk1THddvw8cBDAUaKc AQ5yyyUFJBddqtIKjtFsLSxGduP+lZfTPjQGEAlT200M737+FlqLWmu8N61Q50bCpKck vhM+wct0gP+1ODHRehwYzfpsYlWwRLDHxCj1wWKtMepumRI/Yn0t1DLVadLKzCr0Uxpq xt8w== X-Gm-Message-State: AOJu0Yw1ttJSfs/SAqBNgUSF7FRcCuBulpoVPdN1l1J8yuMsnKNYhG8a tnSkfU54Cn4/ciI2/FviELyXqQ== X-Received: by 2002:a05:600c:a39c:b0:407:4126:f71c with SMTP id hn28-20020a05600ca39c00b004074126f71cmr1619544wmb.6.1697544289376; Tue, 17 Oct 2023 05:04:49 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:f1ee:b000:ce90:ed14]) by smtp.gmail.com with ESMTPSA id a2-20020a05600c224200b00405442edc69sm1353859wmm.14.2023.10.17.05.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:04:48 -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 v3 01/73] pinctrl: remove unneeded extern specifiers from consumer.h Date: Tue, 17 Oct 2023 14:03:19 +0200 Message-Id: <20231017120431.68847-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231017120431.68847-1-brgl@bgdev.pl> References: <20231017120431.68847-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_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham 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]); Tue, 17 Oct 2023 05:04:59 -0700 (PDT) From: Bartosz Golaszewski The 'extern' specifiers are not needed for function declarations. Remove all of them from the pinctrl/consumer.h header. Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij Reviewed-by: Andy Shevchenko --- include/linux/pinctrl/consumer.h | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index 4729d54e8995..22eef0a513ce 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h @@ -25,27 +25,27 @@ struct pinctrl_state; #ifdef CONFIG_PINCTRL /* External interface to pin control */ -extern bool pinctrl_gpio_can_use_line(unsigned gpio); -extern int pinctrl_gpio_request(unsigned gpio); -extern void pinctrl_gpio_free(unsigned gpio); -extern int pinctrl_gpio_direction_input(unsigned gpio); -extern int pinctrl_gpio_direction_output(unsigned gpio); -extern int pinctrl_gpio_set_config(unsigned gpio, unsigned long config); +bool pinctrl_gpio_can_use_line(unsigned gpio); +int pinctrl_gpio_request(unsigned gpio); +void pinctrl_gpio_free(unsigned gpio); +int pinctrl_gpio_direction_input(unsigned gpio); +int pinctrl_gpio_direction_output(unsigned gpio); +int pinctrl_gpio_set_config(unsigned gpio, unsigned long config); -extern struct pinctrl * __must_check pinctrl_get(struct device *dev); -extern void pinctrl_put(struct pinctrl *p); -extern struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p, - const char *name); -extern int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s); +struct pinctrl * __must_check pinctrl_get(struct device *dev); +void pinctrl_put(struct pinctrl *p); +struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p, + const char *name); +int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s); -extern struct pinctrl * __must_check devm_pinctrl_get(struct device *dev); -extern void devm_pinctrl_put(struct pinctrl *p); -extern int pinctrl_select_default_state(struct device *dev); +struct pinctrl * __must_check devm_pinctrl_get(struct device *dev); +void devm_pinctrl_put(struct pinctrl *p); +int pinctrl_select_default_state(struct device *dev); #ifdef CONFIG_PM -extern int pinctrl_pm_select_default_state(struct device *dev); -extern int pinctrl_pm_select_sleep_state(struct device *dev); -extern int pinctrl_pm_select_idle_state(struct device *dev); +int pinctrl_pm_select_default_state(struct device *dev); +int pinctrl_pm_select_sleep_state(struct device *dev); +int pinctrl_pm_select_idle_state(struct device *dev); #else static inline int pinctrl_pm_select_default_state(struct device *dev) { -- 2.39.2