summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorJakob Hauser <jahau@rocketmail.com>2021-10-08 11:32:45 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2021-10-12 18:12:23 +0300
commitbf895295e9a73411889816f1a0c1f4f1a2d9c678 (patch)
tree27d5b59d635029cd4ac0a94bbeaf8307074da5af /drivers/power
parented229454856e565c5a7d3287cbc63f2cf077b34f (diff)
downloadlinux-bf895295e9a73411889816f1a0c1f4f1a2d9c678.tar.xz
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: b847dd96e659 ("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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/rt5033_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rt5033_battery.c b/drivers/power/supply/rt5033_battery.c
index 9ad0afe83d1b..7a23c70f4879 100644
--- a/drivers/power/supply/rt5033_battery.c
+++ b/drivers/power/supply/rt5033_battery.c
@@ -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;
}