lkml.org 
[lkml]   [2012]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRE: [PATCH 1/4] regulator: Set list_voltage callback for 88pm8607
Tested these patch by jett zhou, it works ok!
Thanks

-----Original Message-----
From: Axel Lin [mailto:axel.lin@gmail.com]
Sent: Wednesday, March 28, 2012 2:58 PM
To: linux-kernel@vger.kernel.org
Cc: Haojian Zhuang; Liam Girdwood; Mark Brown; Jett Zhou
Subject: [PATCH 1/4] regulator: Set list_voltage callback for 88pm8607

Current code implements pm8607_list_voltage but does not set the list_voltage
callback function in pm8607_regulator_ops. Fix it.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/regulator/88pm8607.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/regulator/88pm8607.c b/drivers/regulator/88pm8607.c
index 28b81ae..981b47a 100644
--- a/drivers/regulator/88pm8607.c
+++ b/drivers/regulator/88pm8607.c
@@ -328,6 +328,7 @@ static int pm8607_is_enabled(struct regulator_dev *rdev)
}

static struct regulator_ops pm8607_regulator_ops = {
+ .list_voltage = pm8607_list_voltage,
.set_voltage = pm8607_set_voltage,
.get_voltage = pm8607_get_voltage,
.enable = pm8607_enable,
--
1.7.5.4


\
 
 \ /
  Last update: 2012-03-29 04:43    [W:0.066 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site