Skip to contentSkip to conversation

power: ds2782_battery: Typo in comment

PATCH Applied Matthias Brugger 2 participants 2 messages Jan 17, 2014 – Jan 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: ds2782_battery: Typo in comment

Change missleading comment to actual shift value provided by the chip.

---
 drivers/power/ds2782_battery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/ds2782_battery.c +1 -1
index 5631748..041f9b6 100644
@@ -192,7 +192,7 @@ static int ds2786_get_voltage(struct ds278x_info *info, int *voltage_uV)
 
 	/*
 	 * Voltage is measured in units of 1.22mV. The voltage is stored as
-	 * a 10-bit number plus sign, in the upper bits of a 16-bit register
+	 * a 12-bit number plus sign, in the upper bits of a 16-bit register
 	 */
 	err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw);
 	if (err)
Signature · 1 line
1.8.1.2