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

Commit 003a8590 authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata
Browse files

drm/msm/dsi-staging: add regulator name to error log



This change makes error log more informative by adding
regulator name.

Change-Id: I3567f26e3bfc2645ed300a3520cd5ee042eae9a3
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
parent a8118139
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -341,6 +341,11 @@ int dsi_pwr_enable_regulator(struct dsi_regulator_info *regs, bool enable)
{
	int rc = 0;

	if (!regs->vregs) {
		pr_err("Invalid params\n");
		return -EINVAL;
	}

	if (enable) {
		if (regs->refcount == 0) {
			rc = dsi_pwr_enable_vregs(regs, true);
@@ -350,7 +355,8 @@ int dsi_pwr_enable_regulator(struct dsi_regulator_info *regs, bool enable)
		regs->refcount++;
	} else {
		if (regs->refcount == 0) {
			pr_err("Unbalanced regulator off\n");
			pr_err("Unbalanced regulator off:%s\n",
					regs->vregs->vreg_name);
		} else {
			regs->refcount--;
			if (regs->refcount == 0) {