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

Commit f59f5bcb authored by Alan Cox's avatar Alan Cox Committed by Anton Vorontsov
Browse files

intel_mid_battery: Fix battery scaling



There are 3600 seconds per not 3600 hours per second. Correcting this
along with the previous fix gives sensible numbers.

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 08a9e07e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -427,7 +427,7 @@ static int pmic_usb_get_property(struct power_supply *psy,
static inline unsigned long mAStouAh(unsigned long v)
{
	/* seconds to hours, mA to µA */
	return v * 3600 * 1000;
	return (v * 1000) / 3600;
}

/**