Date:2013-05-05 19:19:20 (9 years 4 months ago)
Author:Lars C.
Commit:3b4520f301d8cde6ef9275065b6a0bd151eb332c
Message:regulator: of_get_regulation_constraints: Use node name as fallback

If no name was explicitly specified using the "regulator-name" property use the
name of the device tree as a fallback.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Files: drivers/regulator/of_regulator.c (1 diff)

Change Details

drivers/regulator/of_regulator.c
2424    struct regulation_constraints *constraints = &(*init_data)->constraints;
2525
2626    constraints->name = of_get_property(np, "regulator-name", NULL);
27    if (!constraints->name)
28        constraints->name = np->name;
2729
2830    min_uV = of_get_property(np, "regulator-min-microvolt", NULL);
2931    if (min_uV)

Archive Download the corresponding diff file



interactive