From patchwork Tue Feb 20 11:50:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13563927 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 6E157C48BC4 for ; Tue, 20 Feb 2024 11:50:38 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JffZZBLzaKM2swlBZ+uaa4AcVaqkDJK4tH++hLNJujo=; b=LqT0Cvym2kQnTd opGiLJOc0vvh+sJ6cg12FeDhaPoGey+oOBY8r8bIu7YH7obgWkuGLuOfTjgcsk4W6vA3I1c2+SaXY +5BwBe+hWuOivI4A78YAqqv9ZPcPAtaSTK1880+aeiKrpNDO5DM186uKpdOTG0BSJUZWz9OOxLbXh tyPHiwNTlGUsk9H6KrVn9tX9tJ9e7SCUqQS4tUa263Tsh0CaK7br0rgUFQCnJYESps31LED+w3ekO bJQ/911osO5FNtp9CMUOvHaIROZCSndIEfuaecP696/+v/ewcYgoaxtqhzQeXrp9z6UGicRI93xr5 jHDXFXg0Qrp5QpSwtW1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcOdq-0000000EWn9-0A9b; Tue, 20 Feb 2024 11:50:30 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcOdg-0000000EWhe-0dsN for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 11:50:22 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so5576124a12.1 for ; Tue, 20 Feb 2024 03:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708429819; x=1709034619; darn=lists.infradead.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=jIz2a8ZPV5qqMCqIcgKN9srCLfbQdXRH6UOg+1LhDuc=; b=W27HxddBMD+I4g4SZn0a/9uMTcS5bJN3YoQNPtxVjO9gxSC/1D5inaWeFQrJgZWU8w i4kv4Vdp0whEQxoMt1nF0JegLZVMDtsWfUEGTE2+T0v2pzBAcaGmB397LxX2/SBpIiTF bjDu8OxbDpWLgH9fIn/0nY7uVblClGbgcUQ4HP+iP+0eAd+MsfaD+FuWifNepfEB4Bnf nV4D85OAihsA1ex6sARZ8q7hWM65ehTn6U7c7Cvr4RSlDf5pm+1LkI+euzd3a/1JS9Aw 7X9lfTYVu3usgf+4eWus9z225GCWANODmjIDpfZa8oNEgUBCrQr5rjRWrejVQrYE2nCH Rm9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708429819; x=1709034619; 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=jIz2a8ZPV5qqMCqIcgKN9srCLfbQdXRH6UOg+1LhDuc=; b=HwnBpEyzMCmIk6gm8tV13wyUy6Ma5t05r/bV/KMxWL36hj73ILFBX9eVpXIxduaj9y dQTRJVsjEgJ/XjarSjoCvPIYZ1ihxUzpAgdvMY2yBTLIyP5Sc0KweSxxL9Iw2OLfG9wo 8+zIjNHfBNRfYHm3k6iHQ0jtFjILn38rkU8259nkgwXsbDVSPBc167gf0qI/oEc2ND7v NmgXb/XjgEQMVz4HAa9uCgnLBw5W6KnKw6Zw+c6xKr4jELwXAxwr2ObMkJtAfxbSaH47 VoE1SF6tPApLMLbmQ5eOnCdK4p6y2A21vAN5luupnfpcgH1F2s26YqgE8GNRckM9a4FT NpHA== X-Forwarded-Encrypted: i=1; AJvYcCXiDwG/h3SM3XQiHJ45DCBVvJc13g5ROno57jzgLB2mqk3WfI4v/3+DnfktSvE6TdoN6qSX5jwH8mtzCcj1FnOl2EOAzfp3cyUG1n40egBH0K6/Zjg= X-Gm-Message-State: AOJu0Yz17kCPsz5FhEcRqQNc8WWbIy2LtSCfazwd1GQ9uIqpo/3ppHC6 UQo8kwm8Zpj7JRkbcU0oh8/OnJAok/TAqdLrFkW0fr6nq4anEBgbDnkoR4U5GLSG0QbeyumzLS6 g X-Google-Smtp-Source: AGHT+IHW4GEpTJv1ZnaGPtiU1q+9ICdDV892ZtDa1+jkryGHrkMoTGFQm/ZjleeVFtcfumHH9c72YQ== X-Received: by 2002:aa7:d4d9:0:b0:564:4f6f:a7ff with SMTP id t25-20020aa7d4d9000000b005644f6fa7ffmr4449767edr.20.1708429818757; Tue, 20 Feb 2024 03:50:18 -0800 (PST) Received: from gpeter-l.lan (host-92-18-74-232.as13285.net. [92.18.74.232]) by smtp.gmail.com with ESMTPSA id u16-20020aa7db90000000b005645c4af6c7sm2317832edt.13.2024.02.20.03.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:50:17 -0800 (PST) From: Peter Griffin To: arnd@arndb.de, lee@kernel.org, thor.thayer@linux.intel.com Cc: kernel-team@android.com, krzysztof.kozlowski@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, pankaj.dubey@samsung.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, Peter Griffin Subject: [PATCH 2/3] mfd: syscon: remove extern from function prototypes Date: Tue, 20 Feb 2024 11:50:11 +0000 Message-ID: <20240220115012.471689-3-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240220115012.471689-1-peter.griffin@linaro.org> References: <20240220115012.471689-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240220_035020_211258_F83C10E5 X-CRM114-Status: GOOD ( 10.69 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The kernel coding style does not require 'extern' in function prototypes in .h files, so remove them as they are not needed. To avoid checkpatch warnings such as CHECK: Lines should not end with a '(' +struct regmap *syscon_regmap_lookup_by_phandle( The indentation is also updated. No functional changes in this patch. Signed-off-by: Peter Griffin --- include/linux/mfd/syscon.h | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h index fecc2fa2a364..c315903f6dab 100644 --- a/include/linux/mfd/syscon.h +++ b/include/linux/mfd/syscon.h @@ -17,20 +17,17 @@ struct device_node; #ifdef CONFIG_MFD_SYSCON -extern struct regmap *device_node_to_regmap(struct device_node *np); -extern struct regmap *syscon_node_to_regmap(struct device_node *np); -extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); -extern struct regmap *syscon_regmap_lookup_by_phandle( - struct device_node *np, - const char *property); -extern struct regmap *syscon_regmap_lookup_by_phandle_args( - struct device_node *np, - const char *property, - int arg_count, - unsigned int *out_args); -extern struct regmap *syscon_regmap_lookup_by_phandle_optional( - struct device_node *np, - const char *property); +struct regmap *device_node_to_regmap(struct device_node *np); +struct regmap *syscon_node_to_regmap(struct device_node *np); +struct regmap *syscon_regmap_lookup_by_compatible(const char *s); +struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np, + const char *property); +struct regmap *syscon_regmap_lookup_by_phandle_args(struct device_node *np, + const char *property, + int arg_count, + unsigned int *out_args); +struct regmap *syscon_regmap_lookup_by_phandle_optional(struct device_node *np, + const char *property); #else static inline struct regmap *device_node_to_regmap(struct device_node *np) {