]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
doc: Fix statements on case sensitivity for regulator prefix
authorFelix Brack <fb@ltec.ch>
Fri, 22 Sep 2017 12:27:28 +0000 (14:27 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2017 15:28:17 +0000 (11:28 -0400)
The regulator bindings state that regulator prefixes are allowd to be
in upper or lower case. However pmic_bind_children from pmic_uclass uses
strncmp to compare DT node name against prefix. This comparison is case
sensitive hence the regulator driver prefix case matters.

Signed-off-by: Felix Brack <fb@ltec.ch>
doc/device-tree-bindings/regulator/regulator.txt

index 2cf4b9de8bad8880f3c78504401aa4a76c9d34c8..918711eb4d86881f49abbf12f5872e227ad971c1 100644 (file)
@@ -10,10 +10,10 @@ pmic: drivers/power/pmic/max77686.c
 regulator: drivers/power/regulator/max77686.c
 
 For the node name e.g.: "prefix[:alpha:]num { ... }":
-- the driver prefix should be: "prefix" or "PREFIX" - case insensitive
+- the driver prefix should be: "prefix" - case sensitive
 - the node name's "num" is set as "dev->driver_data" on bind
 
-Example the prefix "ldo" will pass for: "ldo1", "ldo@1", "LDO1", "LDOREG@1"...
+Example the prefix "ldo" will pass for: "ldo1", "ldo@1", "ldoreg@1, ...
 
 Optional properties:
 - regulator-name: a string, required by the regulator uclass