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

Commit c6da3ea2 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

of: batterydata: add a kernel log if battery data is loaded



Add a single pr_info line to the of_batterydata load function
to print out what batterydata is loaded, if any. This will help
debug batterydata issues where it's difficult to tell what is the
currently loaded battery profile.

Change-Id: Ieeda37f82c09f9778d34ebad7cac7885e71cd64a
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent a2f72174
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -307,6 +307,7 @@ int of_batterydata_read_data(struct device_node *batterydata_container_node,
		pr_err("No battery data found\n");
		return -ENODATA;
	}
	pr_info("%s loaded\n", best_node->name);

	return of_batterydata_load_battery_data(best_node,
					best_id_kohm, batt_data);