Skip to contentSkip to conversation

regulator: ad5398: Constify regulator_desc

PATCH Applied Axel Lin 3 participants 8 messages Apr 5, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/6 regulator: ad5398: Constify regulator_desc

---
 drivers/regulator/ad5398.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/ad5398.c +1 -1
index 7d51793..9ba69c4 100644
@@ -184,7 +184,7 @@ static struct regulator_ops ad5398_ops = {
 	.is_enabled = ad5398_is_enabled,
 };
 
-static struct regulator_desc ad5398_reg = {
+static const struct regulator_desc ad5398_reg = {
 	.name = "isink",
 	.id = 0,
 	.ops = &ad5398_ops,
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 2/6 regulator: isl6271a: Constify regulator_desc

---
 drivers/regulator/isl6271a-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/isl6271a-regulator.c +1 -1
index 6539ef9..eee6f6b 100644
@@ -112,7 +112,7 @@ static struct regulator_ops isl_fixed_ops = {
 	.list_voltage	= isl6271a_list_fixed_voltage,
 };
 
-static struct regulator_desc isl_rd[] = {
+static const struct regulator_desc isl_rd[] = {
 	{
 		.name		= "Core Buck",
 		.id		= 0,
Signature · 1 line
1.7.5.4
author
#2 lore raw

PATCH 3/6 regulator: lp3971: Constify regulator_desc

In reply to Axel Lin
---
 drivers/regulator/lp3971.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/lp3971.c +1 -1
index 2013525..499986e 100644
@@ -281,7 +281,7 @@ static struct regulator_ops lp3971_dcdc_ops = {
 	.set_voltage_sel = lp3971_dcdc_set_voltage_sel,
 };
 
-static struct regulator_desc regulators[] = {
+static const struct regulator_desc regulators[] = {
 	{
 		.name = "LDO1",
 		.id = LP3971_LDO1,
Signature · 1 line
1.7.5.4
author
#3 lore raw

PATCH 4/6 regulator: lp3972: Constify regulator_desc

In reply to Axel Lin
---
 drivers/regulator/lp3972.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/lp3972.c +1 -1
index 4f28d36..fbe3a58 100644
@@ -444,7 +444,7 @@ static struct regulator_ops lp3972_dcdc_ops = {
 	.set_voltage_sel = lp3972_dcdc_set_voltage_sel,
 };
 
-static struct regulator_desc regulators[] = {
+static const struct regulator_desc regulators[] = {
 	{
 		.name = "LDO1",
 		.id = LP3972_LDO1,
Signature · 1 line
1.7.5.4
author
#4 lore raw

PATCH 5/6 regulator: pcap: Constify regulator_desc

In reply to Axel Lin
---
 drivers/regulator/pcap-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/pcap-regulator.c +1 -1
index 781bf34..b55128d 100644
@@ -241,7 +241,7 @@ static struct regulator_ops pcap_regulator_ops = {
 		.owner		= THIS_MODULE,			\
 	}
 
-static struct regulator_desc pcap_regulators[] = {
+static const struct regulator_desc pcap_regulators[] = {
 	VREG(V1), VREG(V2), VREG(V3), VREG(V4), VREG(V5), VREG(V6), VREG(V7),
 	VREG(V8), VREG(V9), VREG(V10), VREG(VAUX1), VREG(VAUX2), VREG(VAUX3),
 	VREG(VAUX4), VREG(VSIM), VREG(VSIM2), VREG(VVIB), VREG(SW1), VREG(SW2),
Signature · 1 line
1.7.5.4
author
#5 lore raw

PATCH 6/6 regulator: pcf50633: Constify regulator_desc

In reply to Axel Lin
---
 drivers/regulator/pcf50633-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/pcf50633-regulator.c +1 -1
index b62f4c8..43163f1 100644
@@ -267,7 +267,7 @@ static struct regulator_ops pcf50633_regulator_ops = {
 	.is_enabled = pcf50633_regulator_is_enabled,
 };
 
-static struct regulator_desc regulators[] = {
+static const struct regulator_desc regulators[] = {
 	[PCF50633_REGULATOR_AUTO] =
 		PCF50633_REGULATOR("auto", PCF50633_REGULATOR_AUTO, 128),
 	[PCF50633_REGULATOR_DOWN1] =
Signature · 1 line
1.7.5.4
Acked-by on v1 1/6
#6 lore raw
In reply to Axel Lin

-----Original Message-----
From: Axel Lin [mailto:[email protected]]
Sent: Thursday, April 05, 2012 11:57 AM
To: [email protected]
Cc: Zhang, Sonic; Liam Girdwood; Mark Brown
Subject: [PATCH 1/6] regulator: ad5398: Constify regulator_desc

---
 drivers/regulator/ad5398.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/ad5398.c +1 -1
index 7d51793..9ba69c4 100644
@@ -184,7 +184,7 @@ static struct regulator_ops ad5398_ops = {
        .is_enabled = ad5398_is_enabled,
 };
 
-static struct regulator_desc ad5398_reg = {
+static const struct regulator_desc ad5398_reg = {
        .name = "isink",
        .id = 0,
        .ops = &ad5398_ops,

--
1.7.5.4

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�