]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: pmic: Split output from function
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:38:58 +0000 (15:38 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:53 +0000 (13:48 +0200)
commit8b9df5891ef6065c6a74d459f919ba1a2acb5a0a
tree1c0d09322576724c4dab6a3fe07512a13646e9f4
parent84475127afc5b42fece026ad1c8c797b8b315940
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>
drivers/power/regulator/regulator-uclass.c
include/power/regulator.h
include/power/sandbox_pmic.h
test/dm/regulator.c