]> git.ipfire.org Git - people/ms/u-boot.git/commit
power: extend prefix match to regulator-name property
authorFelix Brack <fb@ltec.ch>
Mon, 27 Nov 2017 08:14:16 +0000 (09:14 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 13 Dec 2017 02:53:45 +0000 (19:53 -0700)
commitbf802f5d544f85c03b4097ab23d078be43c61855
treee1d409198ac421f5796a5d61e1609eaf3bd95ce7
parentb53f6992e9cb7f0d892ebc2b1620b55559f461be
power: extend prefix match to regulator-name property

This patch extends pmic_bind_children prefix matching. In addition to
the node name the property regulator-name is used while trying to match
prefixes. This allows assigning different drivers to regulator nodes
named regulator@1 and regulator@10 for example.
I have discarded the idea of using other properties then regulator-name
as I do not see any benefit in using property compatible or even
regulator-compatible. Of course I am open to change this if there are
good reasons to do so.

Signed-off-by: Felix Brack <fb@ltec.ch>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/sandbox_pmic.dtsi
doc/device-tree-bindings/regulator/regulator.txt
drivers/power/pmic/pmic-uclass.c
include/power/sandbox_pmic.h
test/dm/regulator.c