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

Commit ff71c182 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (max16065) Fix current calculation



Current calculation is completely wrong. Add missing brackets to fix it.

Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 3.0+
parent ddf28352
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -124,7 +124,7 @@ static inline int MV_TO_LIMIT(int mv, int range)


static inline int ADC_TO_CURR(int adc, int gain)
static inline int ADC_TO_CURR(int adc, int gain)
{
{
	return adc * 1400000 / gain * 255;
	return adc * 1400000 / (gain * 255);
}
}


/*
/*