power: supply: rt5033_battery: Change voltage values to µV
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 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 <[email protected]>
Cc Chanwoo Choi <[email protected]>
Signed-off-by Jakob Hauser <[email protected]>
--- drivers/power/supply/rt5033_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/supply/rt5033_battery.c +1 -1
@@ -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; }
Signature · 1 line
2.33.0
Hi,
Quoted 16 lines · Jakob Hauser
Currently the
rt5033_batterydriver provides voltage values in mV. It should be µV as stated inDocumentation/power/power_supply_class.rst.Fixes b847dd96e659 ("power: rt5033_battery: Add RT5033 Fuel gauge device driver")Cc Beomho Seo <[email protected]>Cc Chanwoo Choi <[email protected]>Signed-off-by Jakob Hauser <[email protected]>--- drivers/power/supply/rt5033_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/power/supply/rt5033_battery.c +0
-0
drivers/power/supply/rt5033_battery.c static int rt5033_battery_get_watt_prop(struct i2c_client *client, · line 66
Quoted 8 lines
drivers/power/supply/rt5033_battery.c +1
-1@@ -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; }
Thanks, queued.
-- Sebastian