linux-stable/include/linux/regulator
Cristian Marussi e7095c35ab
regulator: core: add of_match_full_name boolean flag
During regulators registration, if .of_match and .regulators_node are
defined as non-null strings in struct regulator_desc the core searches the
DT subtree rooted at .regulators_node trying to match, at first, .of_match
against the 'regulator-compatible' property and, then, falling back to use
the name of the node itself to determine a good match.

Property 'regulator-compatible', though, is now deprecated and falling back
to match against the node name, works fine only as long as the involved
nodes are named in an unique way across the searched subtree; if that's not
the case, like when using <common-name>@<unit> style naming for properties
indexed via 'reg' property (as advised by the standard), the above matching
mechanism based on the simple common name will lead to multiple matches and
the only viable alternative would be to properly define the now deprecated
'regulator-compatible' as the node full name, i.e. <common-name>@<unit>.

In order to address this case without using such deprecated binding, define
a new boolean flag .of_match_full_name in struct regulator_desc to force
the core to match against the node full-name instead of the plain name.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20201119191051.46363-4-cristian.marussi@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-11-23 18:38:13 +00:00
..
ab8500.h
act8865.h
arizona-ldo1.h
arizona-micsupp.h
consumer.h regulator: consumer: Supply missing prototypes for 3 core functions 2020-06-25 20:11:12 +01:00
coupler.h
da9211.h
db8500-prcmu.h
driver.h regulator: core: add of_match_full_name boolean flag 2020-11-23 18:38:13 +00:00
fan53555.h
fixed.h
gpio-regulator.h
lp872x.h
lp3971.h
lp3972.h
machine.h regulator: Correct kernel-doc inconsistency 2020-07-17 00:16:50 +01:00
max1586.h
max8649.h
max8660.h
max8952.h
max8973-regulator.h
mt6311.h
mt6323-regulator.h
mt6358-regulator.h
mt6380-regulator.h
mt6397-regulator.h
of_regulator.h
pca9450.h regulator: pca9450: add pca9450 pmic driver 2020-07-06 15:23:33 +01:00
pfuze100.h
tps6507x.h
tps51632-regulator.h
tps62360.h
userspace-consumer.h