summaryrefslogtreecommitdiff
path: root/drivers/regulator/88pg86x.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-05-08 20:20:51 +0300
committerMark Brown <broonie@kernel.org>2020-05-08 20:20:51 +0300
commitc50ad6dbf6cc1d1671a3cd5618b3a52c495b78ca (patch)
treedddb8875cc95ce42f31032b3271263ea5a7640df /drivers/regulator/88pg86x.c
parentaab5fd7a1b7b931487694b527322f48f423701c7 (diff)
parent60ab7f4153b6af461c90d572c31104086b44639f (diff)
downloadlinux-c50ad6dbf6cc1d1671a3cd5618b3a52c495b78ca.tar.xz
Merge tag 'linear-ranges-lib' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-5.8
lib: Add linear ranges helper library and start using it Series extracts a "linear ranges" helper out of the regulator framework. Linear ranges helper is intended to help converting real-world values to register values when conversion is linear. I suspect this is useful also for power subsystem and possibly for clk.
Diffstat (limited to 'drivers/regulator/88pg86x.c')
-rw-r--r--drivers/regulator/88pg86x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/88pg86x.c b/drivers/regulator/88pg86x.c
index d5ef55c81185..71cfa2c5de5e 100644
--- a/drivers/regulator/88pg86x.c
+++ b/drivers/regulator/88pg86x.c
@@ -11,13 +11,13 @@ static const struct regulator_ops pg86x_ops = {
.list_voltage = regulator_list_voltage_linear_range,
};
-static const struct regulator_linear_range pg86x_buck1_ranges[] = {
+static const struct linear_range pg86x_buck1_ranges[] = {
REGULATOR_LINEAR_RANGE( 0, 0, 10, 0),
REGULATOR_LINEAR_RANGE(1000000, 11, 34, 25000),
REGULATOR_LINEAR_RANGE(1600000, 35, 47, 50000),
};
-static const struct regulator_linear_range pg86x_buck2_ranges[] = {
+static const struct linear_range pg86x_buck2_ranges[] = {
REGULATOR_LINEAR_RANGE( 0, 0, 15, 0),
REGULATOR_LINEAR_RANGE(1000000, 16, 39, 25000),
REGULATOR_LINEAR_RANGE(1600000, 40, 52, 50000),