Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1446508

[RESEND][PATCH 2/2] regulator: mt6323: Constify struct regulator_ops

Path csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Axel Lin <axel.lin@ingics.com>
Newsgroups linux.kernel
Subject [RESEND][PATCH 2/2] regulator: mt6323: Constify struct regulator_ops
Date Tue, 19 Jul 2016 16:10:02 +0200
Message-ID <rWDSG-516-29@gated-at.bofh.it> (permalink)
References <rWDSG-516-27@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sHBmwzwxuLjQp//Uw5ODk7elA6tT3NPPVT5uQ8enRiU=; b=PxMVpxpzltjK5PC7/FAWsCbq6l1Wlp1/Bea7PkxWJjImT1J8GXCaguvWKAvlmKWxK4 amxWPIQs/xf0cdBD6yHwIEcHwzy601IqKxlWXKMkAoafNZ1bnXyTH9+LXjFsyjUC9Ngn MSSG0SwqWYw22h01Hvcy5UX0MdfVHJaA/UNJ8U9N9FrYoIYrVoj0mq6omk5KI5bwuhS/ OM14tmtfqI2oziPsWVoqwwQ3N+adAuhHR8kbDIsTvFVR37A4e56DBXHXx4M2ENDuqLsz e44hdsPTAPxYChTHSSgaefGIqACUGaFrOdgn5EyEGKIChzEFluGD0vfAAg+IZgPOEp9W WE5g==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sHBmwzwxuLjQp//Uw5ODk7elA6tT3NPPVT5uQ8enRiU=; b=ewrhTpwPnUe6diUASmf28Nj/ITGqgqC2mXWQU9tpEPwYRUgiernPrdh+yVX4IUd5aI unY++fKn1Jw70B5RusdJBAFD2h6XowP11GZ6LSvL2Tmai4hyiz8aDUvEbO/sJYttAsS6 f4B0gUnBzHC9mP/fH9mc0A5Jtv5N0kQCV/0NNERLHuxdhJLk54G/hmPuHJiWMuNWM5Eb Jy0XlFmDI/fLNeSVdg0VaE8nRjPFxQUFR/zQetz0501BaVOXF/Kfzb3cLGM9dNdsMKTb PGe6uxKAGyWyvHWJ8oZ4/ob7vhdEstgJdXHxSnUxC865UbTMI4HuKtUxiuSqO4qDOK4U ileQ==
X-Gm-Message-State ALyK8tLVM5FP9as85D7HtjKodjFKBYwN3fjq+AHzZDIsKU1KgrlxYKzdN9iIF9l9Sk1LBQ==
X-Received by 10.98.157.12 with SMTP id i12mr55648074pfd.164.1468936965593; Tue, 19 Jul 2016 07:02:45 -0700 (PDT)
X-Mailer git-send-email 2.7.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
X-Original-Cc Chen Zhong <chen.zhong@mediatek.com>, John Crispin <john@phrozen.org>, Liam Girdwood <lgirdwood@gmail.com>, linux-kernel@vger.kernel.org, Axel Lin <axel.lin@ingics.com>
X-Original-Date Tue, 19 Jul 2016 22:02:29 +0800
X-Original-Message-ID <1468936949-4016-2-git-send-email-axel.lin@ingics.com>
X-Original-References <1468936949-4016-1-git-send-email-axel.lin@ingics.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1446508

Show key headers only | View raw


Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/mt6323-regulator.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c
index f7831f3..b7b9670 100644
--- a/drivers/regulator/mt6323-regulator.c
+++ b/drivers/regulator/mt6323-regulator.c
@@ -231,7 +231,7 @@ static unsigned int mt6323_ldo_get_mode(struct regulator_dev *rdev)
 	return mode;
 }
 
-static struct regulator_ops mt6323_volt_range_ops = {
+static const struct regulator_ops mt6323_volt_range_ops = {
 	.list_voltage = regulator_list_voltage_linear_range,
 	.map_voltage = regulator_map_voltage_linear_range,
 	.set_voltage_sel = regulator_set_voltage_sel_regmap,
@@ -243,7 +243,7 @@ static struct regulator_ops mt6323_volt_range_ops = {
 	.get_status = mt6323_get_status,
 };
 
-static struct regulator_ops mt6323_volt_table_ops = {
+static const struct regulator_ops mt6323_volt_table_ops = {
 	.list_voltage = regulator_list_voltage_table,
 	.map_voltage = regulator_map_voltage_iterate,
 	.set_voltage_sel = regulator_set_voltage_sel_regmap,
@@ -257,7 +257,7 @@ static struct regulator_ops mt6323_volt_table_ops = {
 	.get_mode = mt6323_ldo_get_mode,
 };
 
-static struct regulator_ops mt6323_volt_fixed_ops = {
+static const struct regulator_ops mt6323_volt_fixed_ops = {
 	.list_voltage = regulator_list_voltage_linear,
 	.enable = regulator_enable_regmap,
 	.disable = regulator_disable_regmap,
-- 
2.7.4

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[RESEND][PATCH 1/2] regulator: mt6323: Fix module description Axel Lin <axel.lin@ingics.com> - 2016-07-19 16:10 +0200
  [RESEND][PATCH 2/2] regulator: mt6323: Constify struct regulator_ops Axel Lin <axel.lin@ingics.com> - 2016-07-19 16:10 +0200
    Applied "regulator: mt6323: Constify struct regulator_ops" to the regulator tree Mark Brown <broonie@kernel.org> - 2016-07-20 18:50 +0200

csiph-web