[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190420072001.16900-1-axel.lin@ingics.com>
Date: Sat, 20 Apr 2019 15:20:00 +0800
From: Axel Lin <axel.lin@...ics.com>
To: Mark Brown <broonie@...nel.org>
Cc: Gyungoh Yoo <gyungoh@...il.com>,
Liam Girdwood <lgirdwood@...il.com>,
linux-kernel@...r.kernel.org, Axel Lin <axel.lin@...ics.com>
Subject: [PATCH 1/2] regulator: sky81452: Constify sky81452_reg_ops
sky81452_reg_ops is never changed, make it const.
Signed-off-by: Axel Lin <axel.lin@...ics.com>
---
drivers/regulator/sky81452-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/sky81452-regulator.c b/drivers/regulator/sky81452-regulator.c
index 647860611916..eb2b60968a1a 100644
--- a/drivers/regulator/sky81452-regulator.c
+++ b/drivers/regulator/sky81452-regulator.c
@@ -34,7 +34,7 @@
#define SKY81452_LEN 0x40
#define SKY81452_LOUT 0x1F
-static struct regulator_ops sky81452_reg_ops = {
+static const struct regulator_ops sky81452_reg_ops = {
.list_voltage = regulator_list_voltage_linear_range,
.map_voltage = regulator_map_voltage_linear_range,
.get_voltage_sel = regulator_get_voltage_sel_regmap,
--
2.17.1
Powered by blists - more mailing lists