Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0c80e68 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "regulator: core: allow long device tree supply regulator property names" into msm-next

parents 5b49ad10 25bf358f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -198,11 +198,11 @@ static void regulator_unlock_supply(struct regulator_dev *rdev)
static struct device_node *of_get_regulator(struct device *dev, const char *supply)
{
	struct device_node *regnode = NULL;
	char prop_name[32]; /* 32 is max size of property name */
	char prop_name[256];

	dev_dbg(dev, "Looking up %s-supply from device tree\n", supply);

	snprintf(prop_name, 32, "%s-supply", supply);
	snprintf(prop_name, sizeof(prop_name), "%s-supply", supply);
	regnode = of_parse_phandle(dev->of_node, prop_name, 0);

	if (!regnode) {