Minor changes

This commit is contained in:
Loic Guegan 2023-08-14 17:52:05 +02:00
parent 4acb4daa59
commit 45e16466b1

View file

@ -87,7 +87,7 @@ static int ina260_hwmon_read(struct device *dev, enum hwmon_sensor_types type,
if(err<0){
return err;
} else if(type == hwmon_power) {
*val=10*rvalue*1000;
*val=rvalue*10000;
} else{
*val=div_u64(rvalue*25,100)+rvalue;
}