Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jisheng Zhang and committed by
Mark Brown
a5f79495 23ce1e5c

+2 -2
+1 -1
Documentation/devicetree/bindings/regulator/mp886x.txt
··· 10 10 values R1 and R2 of the feedback voltage divider in kilo ohms. 11 11 12 12 Optional properties: 13 - - mps,switch-frequency: The valid switch frequency in Hertz. Available values 13 + - mps,switch-frequency-hz: The valid switch frequency in Hertz. Available values 14 14 are: 500000, 750000, 1000000, 1250000, 1500000 15 15 16 16 Any property defined as part of the core regulator binding, defined in
+1 -1
drivers/regulator/mp886x.c
··· 349 349 config.driver_data = di; 350 350 config.of_node = np; 351 351 352 - if (!of_property_read_u32(np, "mps,switch-frequency", &freq)) 352 + if (!of_property_read_u32(np, "mps,switch-frequency-hz", &freq)) 353 353 mp886x_set_switch_freq(di, regmap, freq); 354 354 355 355 ret = mp886x_regulator_register(di, &config);