diff options
author | Mark Brown <broonie@kernel.org> | 2020-05-08 18:20:51 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-08 18:20:51 +0100 |
commit | c50ad6dbf6cc1d1671a3cd5618b3a52c495b78ca (patch) | |
tree | dddb8875cc95ce42f31032b3271263ea5a7640df /drivers/regulator/88pg86x.c | |
parent | aab5fd7a1b7b931487694b527322f48f423701c7 (diff) | |
parent | 60ab7f4153b6af461c90d572c31104086b44639f (diff) | |
download | linux-c50ad6dbf6cc1d1671a3cd5618b3a52c495b78ca.tar.gz |
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.c | 4 |
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), |