RE: [PATCH 1/6] regulator: ad5398: Constify regulator_desc

From: Zhang, Sonic
Date: Thu Apr 05 2012 - 00:16:16 EST


Acked-by: Sonic Zhang <sonic.zhang@xxxxxxxxxx>

-----Original Message-----
From: Axel Lin [mailto:axel.lin@xxxxxxxxx]
Sent: Thursday, April 05, 2012 11:57 AM
To: linux-kernel@xxxxxxxxxxxxxxx
Cc: Zhang, Sonic; Liam Girdwood; Mark Brown
Subject: [PATCH 1/6] regulator: ad5398: Constify regulator_desc

Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
---
drivers/regulator/ad5398.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/ad5398.c b/drivers/regulator/ad5398.c
index 7d51793..9ba69c4 100644
--- a/drivers/regulator/ad5398.c
+++ b/drivers/regulator/ad5398.c
@@ -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




¢éì®&Þ~º&¶¬–+-±éÝ¥Šw®žË±Êâmébžìdz¹Þ)í…æèw*jg¬±¨¶‰šŽŠÝj/êäz¹ÞŠà2ŠÞ¨è­Ú&¢)ß«a¶Úþø®G«éh®æj:+v‰¨Šwè†Ù>Wš±êÞiÛaxPjØm¶Ÿÿà -»+ƒùdš_