Unverified Commit 99ad5f6e authored by Michał Mirosław's avatar Michał Mirosław Committed by Mark Brown
Browse files

regulator: print state at boot

parent 8d23b0b8
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1114,7 +1114,12 @@ static void print_constraints(struct regulator_dev *rdev)
		count += scnprintf(buf + count, len - count, "standby ");

	if (!count)
		scnprintf(buf, len, "no parameters");
		count = scnprintf(buf, len, "no parameters");
	else
		--count;

	count += scnprintf(buf + count, len - count, ", %s",
		_regulator_is_enabled(rdev) ? "enabled" : "disabled");

	rdev_dbg(rdev, "%s\n", buf);