mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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: Alan Cox <alan@linux.intel.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
parent
08a9e07e3f
commit
f59f5bcb60
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue