2012-06-08 02:04:51

by Axel Lin

[permalink] [raw]
Subject: [PATCH] regulator: isl6271a: Remove setting map_voltage callback for isl_fixed_ops

isl_fixed_ops does not implement set_voltage_sel callback, adding map_voltage
here is misleading.

Signed-off-by: Axel Lin <[email protected]>
---
drivers/regulator/isl6271a-regulator.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c
index 4a11b82..1d145a0 100644
--- a/drivers/regulator/isl6271a-regulator.c
+++ b/drivers/regulator/isl6271a-regulator.c
@@ -81,7 +81,6 @@ static int isl6271a_get_fixed_voltage(struct regulator_dev *dev)
static struct regulator_ops isl_fixed_ops = {
.get_voltage = isl6271a_get_fixed_voltage,
.list_voltage = regulator_list_voltage_linear,
- .map_voltage = regulator_map_voltage_linear,
};

static const struct regulator_desc isl_rd[] = {
--
1.7.9.5



2012-06-11 03:41:19

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: isl6271a: Remove setting map_voltage callback for isl_fixed_ops

On Fri, Jun 08, 2012 at 10:04:42AM +0800, Axel Lin wrote:
> isl_fixed_ops does not implement set_voltage_sel callback, adding map_voltage
> here is misleading.

Applied, thanks.


Attachments:
(No filename) (178.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments