mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
power: supply: rt5033_battery: Change voltage values to µV
Currently the rt5033_battery driver provides voltage values in mV. It
should be µV as stated in Documentation/power/power_supply_class.rst.
Fixes: b847dd96e6
("power: rt5033_battery: Add RT5033 Fuel gauge device driver")
Cc: Beomho Seo <beomho.seo@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Jakob Hauser <jahau@rocketmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
ed22945485
commit
bf895295e9
@ -60,7 +60,7 @@ static int rt5033_battery_get_watt_prop(struct i2c_client *client,
|
||||
regmap_read(battery->regmap, regh, &msb);
|
||||
regmap_read(battery->regmap, regl, &lsb);
|
||||
|
||||
ret = ((msb << 4) + (lsb >> 4)) * 1250 / 1000;
|
||||
ret = ((msb << 4) + (lsb >> 4)) * 1250;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user