diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2020-08-24 04:32:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-24 15:17:53 +0200 |
commit | a5f7949570dc7262d3239739b0cdaa001f935d4b (patch) | |
tree | d2fc7229c0c0fd6c5db2aa49c55771f5f441e61e /drivers/regulator/mp886x.c | |
parent | Merge series "regulator: Fix W=1 build warning when CONFIG_OF=n" from Jisheng... (diff) | |
download | linux-a5f7949570dc7262d3239739b0cdaa001f935d4b.tar.xz linux-a5f7949570dc7262d3239739b0cdaa001f935d4b.zip |
regulator: mp886x: use "mps,switch-frequency-hz"
As Rob suggested, use the "mps,switch-frequency-hz" instead of the
"mps,switch-frequency" for switch frequency. Fortunately, the switch
frequency support isn't released, so we can modify it now without
any concern.
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20200824102402.4047fa5f@xhacker.debian
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/mp886x.c')
-rw-r--r-- | drivers/regulator/mp886x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/mp886x.c b/drivers/regulator/mp886x.c index 97dc44c0d663..a84fd74081de 100644 --- a/drivers/regulator/mp886x.c +++ b/drivers/regulator/mp886x.c @@ -349,7 +349,7 @@ static int mp886x_i2c_probe(struct i2c_client *client) config.driver_data = di; config.of_node = np; - if (!of_property_read_u32(np, "mps,switch-frequency", &freq)) + if (!of_property_read_u32(np, "mps,switch-frequency-hz", &freq)) mp886x_set_switch_freq(di, regmap, freq); ret = mp886x_regulator_register(di, &config); |