From patchwork Thu Jun 25 16:36:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11625711 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 7492492A for ; Thu, 25 Jun 2020 16:38:56 +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 4B8EE20775 for ; Thu, 25 Jun 2020 16:38:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PZIuohWd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FzK8AnU0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B8EE20775 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=v75ST+5hydHvgBETamDTvVFtpXlWBTYLCFqWw/oWawc=; b=PZIuohWdXk183HqPBqBo+G8Qx bagNGduaj49HTLtaNbIlk5vhwWTR74dVa9IuIFbAK8YQqVAB2pJUOSwequDalqyjLxb3VFqcs7PC7 9SO1nIPCntn8oT3wD0y4zVyoqQ864z5tRl26FIEmtEZ3lwTi0PSCeOgGLkCNTA3tYfLAYBFu9RMjQ IJoTqR+WXqZtqnUvCBh9R65cw6vdDgtlKLJ+MRVan6CUA02dSUNXMpDQhbxr+8NSOXTp/tII72g2U XdDPhOHe42P6P4ZOM08l9Dy2EdhgXL35D9dqiHBb94pTNBPVZlAycROWgtWIf1UxJ9h76yPoGAORe A0AIfCGEQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1joUrr-0006Fa-8x; Thu, 25 Jun 2020 16:36:51 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1joUrR-00065z-Po for linux-arm-kernel@lists.infradead.org; Thu, 25 Jun 2020 16:36:26 +0000 Received: by mail-wm1-x342.google.com with SMTP id a6so7093979wmm.0 for ; Thu, 25 Jun 2020 09:36:25 -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=mHyTnFgFhenMvt82ZPvmID/k33g654vFpjxfq56glsw=; b=FzK8AnU0x8SaPN9hkqDc4OZY4o+OqxxYwOVuP5tgHwZy56E0V7VKPPd1SUF+EQ8QVq mVglrjvkMeNBBXl4+XwQaqKiwd+O+7lzdJVEU1GOSsY1J5BrJKz0QX2holhriq6vaYRV HoWTnJf+JS2towXY3YhxVhGHVonJy0o4fxau2JaDJiULGHxaRf+9lftb1jMv/c58RNNz r6mJu4Jpw088ypgdxZuWBZTWC9Ic1GN4zPVZKg9NLkXRi6xhfc6/asVLYjCa/hCQKpnc 9WtyAyhezLrDl8mVmKUOXMBZWTkOdXnwK7bA0IKzfN7TMz1RzhOBSPq36Xn+JwncLwQN IShQ== 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=mHyTnFgFhenMvt82ZPvmID/k33g654vFpjxfq56glsw=; b=m3Dx5NZ/3pfjGUpqZxDN0UCeYyv855lmeHaq9XsgnSgRQny6uJlzuI48MGzRteIY5D BwHxWYIEnhLUi5wsOLYdHag8c+FssF0GEYehpEs7mtIa8YGd8SKvb35Y9qslFa5/bkmG 8R4hTobKal1FFoEQTvvaklUQLdAtmbAubRVpaIEpuqUSKXDClqK2NYkd+tDAgEWDHwyM oXogPBcI41gmJ1NXV8YVmLDlz80uSqTFFishwfTS8Z3HUouc2lNLuyZ8jZu/JlWJdX8Q nMt1MMu/xQ9eNoR0VjA+zmyb2m2IuJEJhi/2Zf11mLb+wm/hciY8w1A/fWbqWoe1eG+h oNDQ== X-Gm-Message-State: AOAM531aoIitxxZ/GIl1ff6K0cGw1LJYz2crHjbvltOqYjGqfn2+LEXj I1k3/oLTW6oN9pF0Y3JE+xUbYg== X-Google-Smtp-Source: ABdhPJyVaKgIFOh4fci2JoxsGrqpAosiXDp3roJ2/u2guPJCC0MBxFkIz4vGYBqu4hPheEIXpNi6aQ== X-Received: by 2002:a1c:a557:: with SMTP id o84mr4353457wme.42.1593102984711; Thu, 25 Jun 2020 09:36:24 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id a15sm36729089wrh.54.2020.06.25.09.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 09:36:24 -0700 (PDT) From: Lee Jones To: lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH 01/10] regulator: consumer: Supply missing prototypes for 3 core functions Date: Thu, 25 Jun 2020 17:36:05 +0100 Message-Id: <20200625163614.4001403-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200625163614.4001403-1-lee.jones@linaro.org> References: <20200625163614.4001403-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:342 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 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, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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);