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

Commit e1d12430 authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Harry Yang
Browse files

qcom-charger: smb2: fix kernel log flooding by charger driver



Power supply framework expects all registered power_supply
entities(except "battery" psy) to support ONLINE property.
"usb-main" psy doesn't support ONLINE property and prints
error for unsupported properties in get_property function.
Update error prints to debug in get-property function of
"usb-main" to prevent log flooding.

Change-Id: I270a93fe2e48d368f13e74e63c48613c1a4fb693
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent b11015f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -637,7 +637,7 @@ static int smb2_usb_main_get_prop(struct power_supply *psy,
		rc = smblib_get_prop_fcc_delta(chg, val);
		rc = smblib_get_prop_fcc_delta(chg, val);
		break;
		break;
	default:
	default:
		pr_err("get prop %d is not supported in usb-main\n", psp);
		pr_debug("get prop %d is not supported in usb-main\n", psp);
		rc = -EINVAL;
		rc = -EINVAL;
		break;
		break;
	}
	}