mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
committed by
Mark Brown
parent
23ce1e5c27
commit
a5f7949570
@@ -10,7 +10,7 @@ Required properties:
|
|||||||
values R1 and R2 of the feedback voltage divider in kilo ohms.
|
values R1 and R2 of the feedback voltage divider in kilo ohms.
|
||||||
|
|
||||||
Optional properties:
|
Optional properties:
|
||||||
- mps,switch-frequency: The valid switch frequency in Hertz. Available values
|
- mps,switch-frequency-hz: The valid switch frequency in Hertz. Available values
|
||||||
are: 500000, 750000, 1000000, 1250000, 1500000
|
are: 500000, 750000, 1000000, 1250000, 1500000
|
||||||
|
|
||||||
Any property defined as part of the core regulator binding, defined in
|
Any property defined as part of the core regulator binding, defined in
|
||||||
|
@@ -349,7 +349,7 @@ static int mp886x_i2c_probe(struct i2c_client *client)
|
|||||||
config.driver_data = di;
|
config.driver_data = di;
|
||||||
config.of_node = np;
|
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);
|
mp886x_set_switch_freq(di, regmap, freq);
|
||||||
|
|
||||||
ret = mp886x_regulator_register(di, &config);
|
ret = mp886x_regulator_register(di, &config);
|
||||||
|
Reference in New Issue
Block a user