u-boot/drivers/power/regulator
Simon Glass 3b55d30f6f dm: pmic: Split output from function
The regulator_autoset() function mixes printf() output and PMIC adjustment
code. It provides a boolean to control the output. It is better to avoid
missing logic and output, and this permits a smaller SPL code size. So
split the output into a separate function.

Also rename the function to have a by_name() suffix, since we would like
to be able to pass a device when we know it, and thus avoid the name
search.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-07-21 17:39:26 -06:00
..
fixed.c dm: regulator: add fixed voltage regulator driver 2015-05-14 18:49:38 -06:00
Kconfig sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00
Makefile sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00
max77686.c dm: regulator: add max77686 regulator driver 2015-05-14 18:49:38 -06:00
regulator-uclass.c dm: pmic: Split output from function 2015-07-21 17:39:26 -06:00
sandbox.c sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00