From patchwork Thu Jun 25 19:16:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11627399 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3DA2B1392 for ; Fri, 26 Jun 2020 12:25:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E6C8F207FC for ; Fri, 26 Jun 2020 12:25:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bgL9htCY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VTFVQpH1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E6C8F207FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=q1Pk8KEf31UgPKr3RykOfRmusFtJ2iFsCKbY5PqGyFQ=; b=bgL9htCYFrNUBNT52OC3BE3jX c5KdDRkuZSlX3M3bNTO1NL5INVP/QQCHA+QtzWdxlaHsCD8D4eUCkrrvChBiZyix9iWZ3YvQP8Wv2 tQGEDcSjmfhQiC4Rh8hk8+o3Gcxv5Qf87vA5LqbYa40259pjPGEPbk9j2SScuDkxAqcI+oVhSUZMz blX5g6Is1l23Jo8YAb9M9Y33/plhsmdD4a/lg64ypWlKGkB1GJrU3sh5M/Mgs69S5c1jYn6eRhPig /QovZ1iy9iwfV1XaXaTINWDnhEAL8vN7cD4wf3uOSQna21ymgwFH+kgLD/gf5tmTjHVadsw4/5/nV 4WpPXaIdA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jonNd-0003pv-L7; Fri, 26 Jun 2020 12:22:53 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jon2j-0001vU-5o for linux-arm-kernel@lists.infradead.org; Fri, 26 Jun 2020 12:01:18 +0000 Received: by mail-wm1-x344.google.com with SMTP id l2so7647217wmf.0 for ; Fri, 26 Jun 2020 05:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dg6MQg0di+LqjBqONGXXxyBRvWh5krLOCNnRvvUvfe8=; b=VTFVQpH1dFYRfxcEVx1bIlmWtAfGkxcoZS/nr0pP6c8NX8FurH4xumCl5GhdhERzRX X0KxL66ekXPT18Cyga/sr+tr1CYTt42D4hLtbgE7yywKGiesUCemmKbz+hYBN4VYtJGZ 6foOfmsUMOd/k+TR1XAcDur1OD9lKNpjlLA0ho0BMJ9jNKELA52kVOvYCl9NC4jCilog WNN6v9hYwpbq3/rOXyU2k70kRnhyxyodAQLYKiG7muWYTb7nOEGpM7futwBV6jayL3l6 6eaeOJE1Xebfw7lDx3cmAjwkTTz0GPJkpiaJsxzbB+es+cm2P0hiSeOKGxuFiSX2ZgOE k+6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dg6MQg0di+LqjBqONGXXxyBRvWh5krLOCNnRvvUvfe8=; b=ExA+aQpurdPFiO1u2HHxSgQyHOra/IJMos28AjeiglnG3PWCDHV2v+4c6Tr9rZstsl eyIbWmS5D5yxYMzoNgGRnYl+INeXNVDV/EaKj9SJBI/tECdLrWZZysJibUmFJ57YUYnl 7+0Gdxh6LZRMwnOliQqRGGIj2bvWNmMiS8GeVe/nLrTSZL30S1XpZmn+epl0dRl9Ynwp mNxW0DeveYm4kj3iqZzHrmy/eVXoC7jVuNfYxV4hXmMT7pLuKVairgH960mA6SBMtpcQ 8SH32A4NklHnKrqlsk64booqL4j8Z1Dmsx3EHcDGvUBudnv++LW40ppuwo4zvUarkVOc kKEA== X-Gm-Message-State: AOAM530DOxxWhrWPgGb2JBiQsG7F9uQ2IcnNesrPAd/pzhnCDWDb10uq 8v62t5xwCNFSbPonAolfhcZsM2i7G3lPcw== X-Google-Smtp-Source: ABdhPJwAKgulgVqfj13NpdmZBph65BTuF2FQs3d33CORBUFhvk4113wi68pqZxuDe+nzewP+3ZAlbw== X-Received: by 2002:a7b:c381:: with SMTP id s1mr5308570wmj.25.1593112634724; Thu, 25 Jun 2020 12:17:14 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id p13sm22693983wrn.0.2020.06.25.12.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 12:17:13 -0700 (PDT) From: Lee Jones To: lgirdwood@gmail.com, broonie@kernel.org Subject: [RESEND 01/10] regulator: consumer: Supply missing prototypes for 3 core functions Date: Thu, 25 Jun 2020 20:16:59 +0100 Message-Id: <20200625191708.4014533-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200625191708.4014533-1-lee.jones@linaro.org> References: <20200625191708.4014533-1-lee.jones@linaro.org> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chunyan Zhang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org regulator_suspend_enable(), regulator_suspend_disable() and regulator_set_suspend_voltage() are all exported members of the API, but are all missing prototypes. Fixes the following W=1 warning(s): drivers/regulator/core.c:3805:5: warning: no previous prototype for ‘regulator_suspend_enable’ [-Wmissing-prototypes] 3805 | int regulator_suspend_enable(struct regulator_dev *rdev, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/regulator/core.c:3812:5: warning: no previous prototype for ‘regulator_suspend_disable’ [-Wmissing-prototypes] 3812 | int regulator_suspend_disable(struct regulator_dev *rdev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/regulator/core.c:3851:5: warning: no previous prototype for ‘regulator_set_suspend_voltage’ [-Wmissing-prototypes] 3851 | int regulator_set_suspend_voltage(struct regulator *regulator, int min_uV, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Chunyan Zhang Signed-off-by: Lee Jones --- include/linux/regulator/consumer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 6a92fd3105a31..2024944fd2f78 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -32,10 +32,12 @@ #define __LINUX_REGULATOR_CONSUMER_H_ #include +#include struct device; struct notifier_block; struct regmap; +struct regulator_dev; /* * Regulator operating modes. @@ -277,6 +279,14 @@ int regulator_unregister_notifier(struct regulator *regulator, void devm_regulator_unregister_notifier(struct regulator *regulator, struct notifier_block *nb); +/* regulator suspend */ +int regulator_suspend_enable(struct regulator_dev *rdev, + suspend_state_t state); +int regulator_suspend_disable(struct regulator_dev *rdev, + suspend_state_t state); +int regulator_set_suspend_voltage(struct regulator *regulator, int min_uV, + int max_uV, suspend_state_t state); + /* driver data - core doesn't touch */ void *regulator_get_drvdata(struct regulator *regulator); void regulator_set_drvdata(struct regulator *regulator, void *data);