Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5495592ybp; Tue, 8 Oct 2019 03:53:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3c+buIFpiPPXyK3gq5f5zo6pJPxLyYdo/OTBTDUhzxCUVAyQMhtLSgzh9sPZ895dlagP8 X-Received: by 2002:a17:906:6848:: with SMTP id a8mr28457468ejs.104.1570532014679; Tue, 08 Oct 2019 03:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570532014; cv=none; d=google.com; s=arc-20160816; b=MUd/FusCE01bS5e5bUVIz+5lrMhnDlBCM7Nt0fH52XqFpp5e/qdcYQKoabSqKhdsqG fVjIc+T+BQjPLljUtd6e8qbJdj+33EgQ5/u1mLNsftYNluJpOdRao96p8bTOWThZL1fR 9p7vGeYgA4EsRG+B1TiVV/GRj6U3Si5a9wSLCVIE+RkeWPuZ5ByXfUvXvx94sl0BRjGi 4H1u0OFdFETG5BWnXkj5y6dvoIUrq1A1R+nJkSCyOqDjMFxIYH3jXFByjjZ47q3sXjzc Nnj/KvXNAn+utRKyWgITZ8CZPFr5nqEQ0qyF/gGERTid4DpLp2Wtergb8yCNnoWXoh0X 8SnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=YFJEsHwZa6QwTk57YvfVQd1arCEbyVMTfXhaXNmU/+s=; b=y4AoQD9iRCTneyZqPzUtfX2sdTWybZZnnSyV2yLFCLhhq65cmZwxsmO4vWauzagDqz b5DPjYmp2UsvFRLPXAfr40oNFcTKEmvHSww4CQ/7u7Bp/XRpaHmR7ZkTjKqOfTKJEhKH 2hBAiH9aeGNlDpyE+DMHNPMArarbHgYW6rO6GEBT5oh5g0PsOOKPFVgNXEa9Dz0f31Yc fHf2Sv8RlFYrD1lqLTCjXc5hbIPPmSVD6cwXIyKgbJxYHiEI0awP3dgOPujkcy46Lnte sK0KvG3SaXiEOjTyC0XzT6PpWA2mIT4vFIAoToMAyqFio2rGaLX2huk3HAKeyCf+2F62 R2aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=SbbCwzOc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si10079029edm.313.2019.10.08.03.53.10; Tue, 08 Oct 2019 03:53:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=SbbCwzOc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730519AbfJHKw4 (ORCPT + 99 others); Tue, 8 Oct 2019 06:52:56 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47658 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730218AbfJHKwz (ORCPT ); Tue, 8 Oct 2019 06:52:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=YFJEsHwZa6QwTk57YvfVQd1arCEbyVMTfXhaXNmU/+s=; b=SbbCwzOcw04p KM3okTg3ODuQ76hAnJ7AUQBB7J7Y+PrcP/39DQCEY6vXXSvGGS3waGsR5/g7UKDB9KzJc2LlJZg66 l69AsnyXjkTYKajjx30KdQuSGzLs+VHz/Ot4B5ZZUmfpRr+pxuNkLuj0xUEtexoYOOS+1naUqi/RW eoUk4=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iHn6n-00083V-4Z; Tue, 08 Oct 2019 10:52:49 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 533392742998; Tue, 8 Oct 2019 11:52:48 +0100 (BST) From: Mark Brown To: Axel Lin Cc: Heiko Stuebner , Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , Tony Xie Subject: Applied "regulator: rk808: Remove rk817_set_suspend_voltage function" to the regulator tree In-Reply-To: <20191008010628.8513-3-axel.lin@ingics.com> X-Patchwork-Hint: ignore Message-Id: <20191008105248.533392742998@ypsilon.sirena.org.uk> Date: Tue, 8 Oct 2019 11:52:48 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: rk808: Remove rk817_set_suspend_voltage function has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 9306a733f8eac86400b9149db6d047dc371e46a2 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 8 Oct 2019 09:06:28 +0800 Subject: [PATCH] regulator: rk808: Remove rk817_set_suspend_voltage function The implement is exactly the same as rk808_set_suspend_voltage, so just use rk808_set_suspend_voltage instead. Signed-off-by: Axel Lin Link: https://lore.kernel.org/r/20191008010628.8513-3-axel.lin@ingics.com Signed-off-by: Mark Brown --- drivers/regulator/rk808-regulator.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index d0d1b868b0cd..5b4003226484 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -411,21 +411,6 @@ static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) sel); } -static int rk817_set_suspend_voltage(struct regulator_dev *rdev, int uv) -{ - unsigned int reg; - int sel = regulator_map_voltage_linear(rdev, uv, uv); - /* only ldo1~ldo9 */ - if (sel < 0) - return -EINVAL; - - reg = rdev->desc->vsel_reg + RK808_SLP_REG_OFFSET; - - return regmap_update_bits(rdev->regmap, reg, - rdev->desc->vsel_mask, - sel); -} - static int rk808_set_suspend_voltage_range(struct regulator_dev *rdev, int uv) { unsigned int reg; @@ -708,7 +693,7 @@ static const struct regulator_ops rk817_reg_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = rk8xx_is_enabled_wmsk_regmap, - .set_suspend_voltage = rk817_set_suspend_voltage, + .set_suspend_voltage = rk808_set_suspend_voltage, .set_suspend_enable = rk817_set_suspend_enable, .set_suspend_disable = rk817_set_suspend_disable, }; -- 2.20.1