[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1372805918-15128-1-git-send-email-broonie@kernel.org>
Date: Tue, 2 Jul 2013 23:58:38 +0100
From: Mark Brown <broonie@...nel.org>
To: Liam Girdwood <lgirdwood@...il.com>,
Daniel Jeong <gshark.jeong@...il.com>
Cc: linux-kernel@...r.kernel.org, linaro-kernel@...ts.linaro.org,
Mark Brown <broonie@...aro.org>
Subject: [PATCH] regulator: lp8755: Provide map_voltage()
From: Mark Brown <broonie@...aro.org>
Improve performance when setting voltages by avoiding a scan through the
selectors when we can simply calculate the selector we want.
Signed-off-by: Mark Brown <broonie@...aro.org>
---
drivers/regulator/lp8755.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/lp8755.c b/drivers/regulator/lp8755.c
index d9e38b4..b37ef30 100644
--- a/drivers/regulator/lp8755.c
+++ b/drivers/regulator/lp8755.c
@@ -228,6 +228,7 @@ err_i2c:
}
static struct regulator_ops lp8755_buck_ops = {
+ .map_voltage = regulator_map_voltage_linear,
.list_voltage = regulator_list_voltage_linear,
.set_voltage_sel = regulator_set_voltage_sel_regmap,
.get_voltage_sel = regulator_get_voltage_sel_regmap,
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists