Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5498428ybp; Tue, 8 Oct 2019 03:57:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFrM9y3cvLFOxhL5ubc3YXKPBOJ6117xO4le4s+P1mjLd6FU2pjR2sHdzAK/HZFHscayL2 X-Received: by 2002:a05:6402:281:: with SMTP id l1mr33461346edv.40.1570532220245; Tue, 08 Oct 2019 03:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570532220; cv=none; d=google.com; s=arc-20160816; b=SGWUeh7xNhhKrkpFAj+A5HQ8qgGzB6B3XJyagsOlNaGsbGziX9O7UplBhfqghR4lls oTebb4tpqjG0wX+/wD7co5OZ+RInKC3b4VE2/hqHLwueL/95qIm6/8A/NRugoHsAl8YU oXOoa2ocfBcZS/kIbaPp611lHnqutZHOZAHCJulX5ph17Wg3uirwW0DYZxWs+sSAQ03f pWHPHsm6x1VqLdHJv4JIVooxlXci/xRdFQQZbLT0H9jJ1/fZX/8kcAf+pEMER2dNjC5j lehPQy/R8EUZW366/aeNNHrUu7dhLyiG4i+ooDLbkmOSDnkCgSj1hSPF3apjoA26kfKc O52g== 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=ngt3gSvS1KH6rVDgxpsnLeZZYKwMM9UIKM2G9/QBotk=; b=ch3cv7H4kOYmoyTkdMNyVmXhttWxKRlPHy3kYxQkNjhOkv7MlHlLoogGyk+plXgnQM ffsDcLc1kj3CtNpprnwRKk6ea3Xcrirp4fhV6K7e9pMFWkXwXjdK+B/KRBeMG3C/aeMv sehWxF8MRdRYQY7DrSmBOUMFKtFwJWqpYCHioI61MhoqVGWFpVN7Iry4SzP8c/bNHsK3 kNhWjHSu4K5pGcfkxXfcnxiI0fie0Z9CMw1djm+SodfNrtVMwvf4kZWXF+GyCEhzU1XR STznsFARAwB2BNaL9pB0oR0L0nmwi0FuqBg1H7D7qYJGevfVc4tXUufJ+wROwjYChv/+ SPpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TGm54aoV; 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 gh3si8116042ejb.306.2019.10.08.03.56.37; Tue, 08 Oct 2019 03:57:00 -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=TGm54aoV; 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 S1730612AbfJHKxN (ORCPT + 99 others); Tue, 8 Oct 2019 06:53:13 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47622 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730016AbfJHKwy (ORCPT ); Tue, 8 Oct 2019 06:52:54 -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=ngt3gSvS1KH6rVDgxpsnLeZZYKwMM9UIKM2G9/QBotk=; b=TGm54aoVA/Ji rdLAkOiG3y3eitoFt72K7QEtPTG6ziFkQFm5uLm91+ThVyYiZuG62oXG0hFkyqf0voncw6Ke8qAL9 ULe1c9WexgjAB/aLW6msUm8HCjNJVezQrUjNoiWwI9b+LEYvxlJZGMPOb69m05fbctklNcIh+WqVF QMuY8=; 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-00083Y-B6; Tue, 08 Oct 2019 10:52:49 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id CDB5D274299F; 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: Constify rk817 regulator_ops" to the regulator tree In-Reply-To: <20191008010628.8513-1-axel.lin@ingics.com> X-Patchwork-Hint: ignore Message-Id: <20191008105248.CDB5D274299F@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: Constify rk817 regulator_ops 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 2e67f32296e3f1841793e36ce796f1497614c687 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 8 Oct 2019 09:06:26 +0800 Subject: [PATCH] regulator: rk808: Constify rk817 regulator_ops These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin Link: https://lore.kernel.org/r/20191008010628.8513-1-axel.lin@ingics.com Signed-off-by: Mark Brown --- drivers/regulator/rk808-regulator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 61bd5ef0806c..eda056fce65f 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -686,7 +686,7 @@ static const struct regulator_linear_range rk805_buck_1_2_voltage_ranges[] = { REGULATOR_LINEAR_RANGE(2300000, 63, 63, 0), }; -static struct regulator_ops rk809_buck5_ops_range = { +static const struct regulator_ops rk809_buck5_ops_range = { .list_voltage = regulator_list_voltage_linear_range, .map_voltage = regulator_map_voltage_linear_range, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -700,7 +700,7 @@ static struct regulator_ops rk809_buck5_ops_range = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_reg_ops = { +static const struct regulator_ops rk817_reg_ops = { .list_voltage = regulator_list_voltage_linear, .map_voltage = regulator_map_voltage_linear, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -713,7 +713,7 @@ static struct regulator_ops rk817_reg_ops = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_boost_ops = { +static const struct regulator_ops rk817_boost_ops = { .list_voltage = regulator_list_voltage_linear, .map_voltage = regulator_map_voltage_linear, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -725,7 +725,7 @@ static struct regulator_ops rk817_boost_ops = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_buck_ops_range = { +static const struct regulator_ops rk817_buck_ops_range = { .list_voltage = regulator_list_voltage_linear_range, .map_voltage = regulator_map_voltage_linear_range, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -743,7 +743,7 @@ static struct regulator_ops rk817_buck_ops_range = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_switch_ops = { +static const struct regulator_ops rk817_switch_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = rk8xx_is_enabled_wmsk_regmap, -- 2.20.1